Expand my Community achievements bar.

SOLVED

Add a blank row/empty row as a new instance of a table if first row has default text?

Avatar

Level 2

Screenshot1.png

Button.png

I currently have a repeating row with a +/- button. The first row has default text (first image pictured).

When I click the + button, I would like to create a new row but the text fields should be blank. I've been testing different ways but can't seem to get it right. Any suggestions?

 

Thank you for your help!

(Side Note for my + button: The first line of code adds a new instance, the second line of code adds a new row in between rows)

1 Accepted Solution

Avatar

Correct answer by
Level 4

Don't use the default value of the fields but use initialize event with JavaScript to fill

Kosta_Prokopiu_0-1600208016936.png

Same for the second field

Kosta_Prokopiu_1-1600208052098.png

Kosta_Prokopiu_2-1600208084681.png

 

View solution in original post

3 Replies

Avatar

Correct answer by
Level 4

Don't use the default value of the fields but use initialize event with JavaScript to fill

Kosta_Prokopiu_0-1600208016936.png

Same for the second field

Kosta_Prokopiu_1-1600208052098.png

Kosta_Prokopiu_2-1600208084681.png

 

Avatar

Level 2
I didn't even think about that. That makes it so much easier too. Thank you so much! That helped!!