Very rudimentary question here, but, is there a way to create a script to empty a load of text fields on my modal form, when the form closes.
I know I can add it on the event handler for close modal - however, rather than hard code each text component as separate handler - is there a way to run a short javascript or something, and then call that script?
Meaning if /when I update the fields in the form, I only need to update this script?
Or, even more clever - a script that can apply to any modal form? Although I know I'm pushing my luck here, especially given my very shallow coding expertise!
I've tried to use chatGPT to help me here, but I'm drawing blanks.... I think I just need to know the syntax to add to my script to make a textBox = ""
Thanks @ScottR - that explains it!
I was sure I had this working before and couldn't figure out what had happened.....
It's because I had actually got rid of the form for this modal, and just using text boxes - which is when this option disappears! Yet another reason why we should use a form where possible!