Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

BGreggs4
Level 2
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
Kosta_Prokopiu
Correct answer by
Level 4
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
Kosta_Prokopiu
Correct answer by
Level 4
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

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