Expand my Community achievements bar.

How to add one button at top of table that creates new rows each time a user clicks on it?

Avatar

Level 1

In the help guide, there is an example of adding buttons to each row - an Add Row and Delete Row button.  I am interested in having one button at the top of the table that can add rows. 

3 Replies

Avatar

Level 10

Hi,

You can create a table with a header row, where you can place your add button in one of its cells.

Then you need a script to create a new row in the buttons click event. In a table named 'Table1' with a row named 'Row1' it looks this way:

Table1._Row1.addInstance()

Avatar

Level 1

Thank you for the help!

Second question - if the form has rows being added, and there is content below the table.  How do you make sure the content moves if rows are added?

I did try and search this - is it related to content areas?

Avatar

Level 6

Position your content within a positioned subform.  Set the page to flow.