Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Field in Master Page are deleted while removing a table row

Avatar

Level 2

Hi all,

 

I have in my Adobe form a tabel with a + button to add rows and a - button to delete rows. The code for deleting a row is the following in the click event:

    var rowNum = this.parent.index;
    this.parent.instanceManager.removeInstance(rowNum);

 

However, on top of the table there are other fields as part of the master layout, and every time I delete a single table row the data that is manually maintained in the top fields within the master layout is as well deleted. 

Why?

deboraha5380687_0-1578491210948.png

 

Thanks.

 

BR, 

Deborah

1 Accepted Solution

Avatar

Correct answer by
Level 10

Make sure the affected fields have set a data binding.

View solution in original post

4 Replies

Avatar

Level 10

Can you share the form? Looks like a design issue.

Avatar

Level 2
Hi Radzmar, whats your email-address then I can send you the form? Thanks very much! BR Deborah

Avatar

Correct answer by
Level 10

Make sure the affected fields have set a data binding.

Avatar

Level 2
Thanks after setting a data binding, the issue was solved