Here is my scenario:
I have an invoice form with a list of possible items that the user chooses by entering a quantity (text fields).
[X] No Items <--- (checkbox in question)
I want the green text fields to clear to "0" when the checkbox is checked.
If you use a check box then you need un-select it and re-select it to clear the fields a second time. Would not a button make more sense?
What do want while the check box remains selected?
this.resetForm([ "sun_txt", "brace_txt", "shirt_txt" ]);
You could also select the action "Reset a Form" and select the fields to reset.
You're right! A button is a better choice. And I was afraid to use the "reset form" option because I was afraid it would erase the entire form, but now I see that I have the option to choose which fields I want to reset
I tried the code, but I couldn't figure it out. Thankfully the reset option worked.