I have created a form letter that acts as a class confirmation for the admin assistant to use. When she hits a "Click to E-mail" OK button, I created it to hide the OK button. Further Actions for this same button above the Show/Hide Field script include, "Execute a menu item-File>Save As...,-Submit a form" Additionally, this is an enabled form so that she might save it before sending the completed attachment.
For some reason, the final version that is received by the student (via e-mail attachment) contains a visible "Click to E-mail" OK Button.
Also in using the form (I'm the admin today!), I realized that I'd like for all the form fields to become "read only" on the version that is saved and sent to the student.
So: Can I hide the OK button when it's saved and sent AND can I enable all the form fields to be "read only" before/as it's saved and sent?
Thanks,
Page
You've listed several issues here. I'd suggest posting a new thread for each individual issue and provide a short but thorough explanation, you'll get a better response that way.
You can hide a button with the script
fieldName.presense = "invisible";
But be careful how the code is applied. If it's done on every save, then how will it ever be used? What if the form is saved before it's completed, and the person will try to complete it later?
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script