Hi, I want to insert multiple rows using a single form like the image shown below.
This is my code: <div class="newawd"> <table class="form-table"> <tr> <td>{{=form.custom.label.award_name}}:</td> <td>{{=form.custom.widget.award_name}}</td> <td>{{=form.custom.label.employee_name}}:</td> <td>{{=form.custom.widget.employee_name}}</td> <td>{{=form.custom.label.team_name}}:</td> <td>{{=form.custom.widget.team_name}}</td> <td>{{=form.custom.label.description}}:</td> <td>{{=form.custom.widget.description}}</td> <td>{{=form.custom.label.image}}:</td> <td>{{=form.custom.widget.image}}</td> </tr> </table> </div> <div id="nwrw"></div> {{=form.custom.submit}} {{=form.custom.end}} <div> <button name="Add New Award" value="new row" id="newBtn">Add New entry</button></div> <script type="text/javascript"> $("#newBtn").click(function(){ $("#nwrw").append('<div>{{=form.custom.label.award_name}}:{{=form.custom.widget.award_name}}{{=form.custom.label.employee_name}}:{{=form.custom.widget.employee_name}}{{=form.custom.label.team_name}}:{{=form.custom.widget.team_name}}{{=form.custom.label.description}}:{{=form.custom.widget.description}}{{=form.custom.label.image}}:{{=form.custom.widget.image}}</div>'); }); </script> Please let me know how can we achieve this in web2py. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.