Hello,
This seems to be a common question and I have found some answers but it does not seem to be working for me.
I have a form (form1), and on page 3 (page 3) I have a table with a group of radio buttons (9 groups of 3 radio buttons). I wrapped my radio buttons in a subform which I called 'Comparison'.
I have added a button to clear the table, and only the table (all 9 groups):
I added this code to the button:
xfa.host.resetData("form1.page 3.Comparison");
Show: click*, language selected is javascript, run: at client
When I test it, the button clears the whole form (all pages).
What am I missing?
Thank you!
Caroline
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Caroline,
Try and declare a variable with the full SOM Expression for the container and then pass this to the resetData method. The following is on the basis that the reset button is inside the Comparison subform.
// reset information in this subform only
var f1 = this.parent.somExpression;
xfa.host.resetData(f1);
See an example here: http://assure.ly/jcHEyc.
Hope that helps,
Niall
Hi Caroline,
Try and declare a variable with the full SOM Expression for the container and then pass this to the resetData method. The following is on the basis that the reset button is inside the Comparison subform.
// reset information in this subform only
var f1 = this.parent.somExpression;
xfa.host.resetData(f1);
See an example here: http://assure.ly/jcHEyc.
Hope that helps,
Niall
Thank you, this is working!!
Views
Replies
Total Likes