Question
JavaScript to run on open
Hello! Needing some JavaScript coding help on an Adobe dynamic form. Does anyone know a code that will do the following on an adobe form (with layers).
Upon open, set layer visibility to last save
or
Upon open, find selected radio button and re-run code that lives under that selection
Currently the form functions as below:
- viewer selects a radio button option 1,2, or 3
- the corresponding layer becomes visible, along with all form functions like text boxes, check boxes, etc. that correspond with the selected layer.
- viewer fills in the form and saves it
- reviewer opens the form and instead of seeing how the form was last saved, it reverts back to the original view of the form (which is option 1). The reviewer then has to reselect (let's say option 2) on the radio button to view it correctly.
I believe there is a code that I could write upon document open to either view the radio button and rerun the code on that, or to open with layer visibility last saved. I don't know enough about JS to know that. Any help/advice is much appreciated, thank you in advance!!
