You can't just invent commands and hope they will work... If you want to reset a field to its default value you can either use the resetForm method of the Document object (specifying that field's name as the input parameter) or apply the field's defaultValue property to its value property.
I added a function:
And called that function inside the other function that I mentioned above. It completes this.getField("13: Justification").value = ""; when I click the YES button but the fResetDropDown still doesn't work. Did I input the line correctly? I wasn't sure what you meant by "specifying that field's name as the input parameter". Do you mean when I put in "this.getField("System Name")"?
The dropdown menu is set up where the text "Select from the dropdown menu" is the default text when the form is initially opened. When other text is selected but the user decides to cancel when asked in the popup window, the dropdown menu stays with the text they selected and does not "default" to "Select from the dropdown menu".
Again, there's no such thing as a reset method. Do you want to revert this field to its default value?
If so, use this code:
1 person found this helpful
Or you could use this code to reset only the field
this.getField("System Name").value = this.getField("System Name").defaultValue;