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

How do I disable all fields with a submit button?

New Here ,
Mar 06, 2018 Mar 06, 2018

How do I disable all fields on copies and sending an email using a submit button? Also hiding the buttons? How do i have the button automatically save a disabled copy with work order #?

TOPICS
Create PDFs
3.3K
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
1 ACCEPTED SOLUTION
Community Expert ,
Mar 07, 2018 Mar 07, 2018
LATEST

You need to:

1. Disable all fields

2. Submit the form

3. Enable all fields

This all needs to be done using a script, so the order of these steps can be controlled.

View solution in original post

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
Adobe Employee ,
Mar 06, 2018 Mar 06, 2018

Hello Seitzjhcepacair,

As per the description above, you want to disable all fields with a submit button in a PDF form, Is that correct?

This can be achieved by javascript, and you can refer to the following KB docs which discuss the similar scenario

How do I disable all fields when sending a pdf through the "submit a form" button? Link: https://forums.adobe.com/thread/2149757

https://acrobatusers.com/forum/forms-livecycle-designer/disabling-all-buttons-one-submiting-button/

Disabling a submit form button in Adobe Acrobat DC? Link: https://forums.adobe.com/thread/2199864

You may also refer to PDF form field properties, Adobe Acrobat

Let us know how it goes and share your findings.

Regards,

Anand Sri.

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
New Here ,
Mar 06, 2018 Mar 06, 2018

I am the one that is going to reuse the form. I need to use it on the go. I want it to email a copy of completed form with fields disabled and buttons invisible to customer.

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
Adobe Employee ,
Mar 06, 2018 Mar 06, 2018

Please try the suggestion and steps from the above shared KB links, and let us know how it goes.

Regards,

Anand Sri.

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
New Here ,
Mar 06, 2018 Mar 06, 2018

This is what is happening. I submit. And everything is still functional in the email copy and everything in my form becomes disabled and buttons are hidden. I want everything to remain constant on my form and everything disabled sent out. Any other suggestions?

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
New Here ,
Mar 06, 2018 Mar 06, 2018
  1. for (var i=0; i<this.numFields; i++) {   
  2.      var f = this.getField(this.getNthFieldName(i));   
  3.       if (f.type != "button") {   
  4.           f.readonly = true;   
  5.      }  
  6.      else
  7.           f.display = display.hidden; 
  8.      } 
  9. }  
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 ,
Mar 07, 2018 Mar 07, 2018
LATEST

You need to:

1. Disable all fields

2. Submit the form

3. Enable all fields

This all needs to be done using a script, so the order of these steps can be controlled.

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