Copy link to clipboard
Copied
I need to create a button that will automatically reset all fields to their initial state (i.e., clear all number, text, date and checkboxes, and return dropdowns to their default selections).
Any help would be greatly appreciated.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Have it execute this JS code:
this.resetForm();
Copy link to clipboard
Copied
Answer in image.
Copy link to clipboard
Copied
The problem with doing it like that is if you add fields, or rename some existing ones, after you add this command, it doesn't apply to those new/edited fields.