Copy link to clipboard
Copied
I have a fillable form that is submitted via email. When I test the received form the submit button is still active in the file that was attached to the email.
Is there a script I can add to the submit button that will deactivate the submit button on the file that is emailed?
Where would it be placed in the script before var cToAddr = ?
Thank you!
Kristen
Add this line to the top of the code under your Submit button:
event.target.display = display.hidden;
Copy link to clipboard
Copied
Add this line to the top of the code under your Submit button:
event.target.display = display.hidden;
Copy link to clipboard
Copied
Thank you!
Copy link to clipboard
Copied
I also have a Reset Button that I would like to deactivate in the file that is emailed. I am using the built in reset form function in Adobe. Is there a script I can that will deactivate or remove this button in the emailed file?
Copy link to clipboard
Copied
You can hide the button you added, but not the one in the application.
Use this code:
this.getField("MyResetButton").display = display.hidden;
Copy link to clipboard
Copied
Hello - You have been very helpful. Scripting is not my strong skill...do I pick the option of Mouse Up - Run a JavaScript then add this to script field for the Reset Form button?
this.getField("ResetForm").display = display.hidden;
Copy link to clipboard
Copied
Yes.
Copy link to clipboard
Copied
One could also make the fields readonly so they could not be changed or selected.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now