Button clears entries in the floating field in each table created
Good Day,
My form has a check-box and a radio button in the Master Page. They are set to global. In one of the rows of my table, I have floating fields within it. The floating field is set to global as well. When a box is checked or radio button is chosen, a "specific word" is entered in the floating field. Let's say the word entered is "Dog". I also have a button that adds a table which also copies some of the entries within it. This works perfectly. "Dog" is copied as it should be. I also have a button to clear entries from a specific table. Here lies the issue:
When I click the button to clear entries from a specific table, it clears the word "Dog" from every table that were created. I do not want that to happen. I need for the word "Dog" to stay in all table rows created, including the table that is tied to the " erase specific entries button" when it is clicked. I tried changing the binding but then the "Dog" is not copied when I click the "create similar" button. Any help is greatly appreciated. I'm on a time crunch to get this resolved ASAP. This is what I have in the erase click button:
if (xfa.host.messageBox("You are about to erase all entries in this record. Do you want to proceed?", "Reset the form", 2,2) === 4){
xfa.host.messageBox("All entries have been removed");
xfa.host.resetData(CARDS.resolveNode("Table1[" + this.parent.parent.parent.index + "]").somExpression);
}
else {
xfa.host.messageBox("No entries have been removed");
}