Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Deactivate submit button on emailed file

Community Beginner ,
Dec 01, 2017 Dec 01, 2017

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

TOPICS
Acrobat SDK and JavaScript , Windows
638
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 01, 2017 Dec 01, 2017

Add this line to the top of the code under your Submit button:

event.target.display = display.hidden;

Translate
Community Expert ,
Dec 01, 2017 Dec 01, 2017

Add this line to the top of the code under your Submit button:

event.target.display = display.hidden;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 01, 2017 Dec 01, 2017

Thank you!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 01, 2017 Dec 01, 2017

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? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 01, 2017 Dec 01, 2017

You can hide the button you added, but not the one in the application.

Use this code:

this.getField("MyResetButton").display = display.hidden;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 05, 2017 Dec 05, 2017

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;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 05, 2017 Dec 05, 2017

Yes.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 05, 2017 Dec 05, 2017
LATEST

One could also make the fields readonly so they could not be changed or selected.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines