Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

add row dynamically in the table.

Avatar

Former Community Member
Please suggest me javascript function to add row dynamicly in the table whenever i click the add button..........

thanks...........
4 Replies

Avatar

Level 4
Hi,<br />You can use subforms instead of tables and the javascript on the click event of the button will be like:<br />form1.page1.<your_subform>.instanceManager.addInstance(0);<br /><br />Oguz<br />www.kgc.com.tr

Avatar

Former Community Member
hi

i used your subform solution but i want to delete specific row then what will you suggest?

Avatar

Level 4
Put a "delete row" button to your repeating subform and use the following script on the click event:<br />form1.page1.<repeating_subform>.instanceManager.removeInstance(this.parent.index);<br /><br />Oguz<br />www.kgc.com.tr

Avatar

Former Community Member
thanks otk



i written your above metioned script but it delete row first row of the table. means parent of this instance. then how i can delete particular mentioned row?