The resetForm method takes the name of a field, or fields, as its parameter, not a Field object.
Try using this code instead:
I tried your suggestion but it didn't seem to work. I've created a workaround, however by changing the keystroke script to simply call the function on will commit and anything else will simply reset the supervisor field.
I had provisioned for the blank combobox selections in the document level script anyway, so resetting the field based on the blank option was really redundant.
Thanks for the suggestion! I didn't realize I only had to call out the field name.
Updated keystroke script:
New issue: The above solution I came up with is now causing another issue that I've never come across.
If I try to type custom text in the employee field, the script keeps running after every character. This is not allowing me to type more than one character every few seconds and won't be acceptable. What's odd is it wasn't doing that until after I saved, closed out of Acrobat, and reopened.
- Commit selected value immediately was checked on (still doesn't work if checked off)
Is there a way to stop a script from continually running. I'm not getting why it's running after every character?
I'm welcome to any suggestions, even running another type of event instead of custom keystroke, maybe a validation event, maybe put a return in the script, etc.