Forms: Javascript Best Practices - writing scripts for each field vs one script, i.e. hidden calc...
Hey all, I'm still relatively new to javascript for forms in acrobat. But my forms have quickly become quite complex. I design them in Indesign with as much functionality as possible and then add java in acrobat. I have fields with onBlur and onFocus actions, validations that display or hide other fields or buttons, dropdowns coded to hide or display other fields, indesign buttons that function as error messages that hide/display when needed.
The problem is: these scripts are all in separate places. I can edit them to an extent in the All JavaScripts editor. Honestly, that editor is more confusing to me at this point--I believe, due to the XML tags.
1. Is it best-practices to consolidate all scripts in one place, especially if I plan to make more complex forms?
2. Is that place the All JavaScripts editor or somewhere else?
Thanks for you time.
