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

reset form with password protect fields

Community Beginner ,
Nov 22, 2023 Nov 22, 2023

Copy link to clipboard

Copied

I have Acrobat Pro 2017

 

i created a form with s few fields password protected for internal use.  i also put a reset form botton.  when i tested it out - the reset form button requires the password for the protected fields.  Fair enough- that makes sense.  

 

So... whats the work around so the reset form button actually clears the entire form without entering the password 7 times! ? ! ? 

 

if that is the only option, ok.  but surely there is another way...

 

thank you!!  LA

TOPICS
How to , PDF forms

Views

833

Translate

Translate

Report

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 ,
Nov 22, 2023 Nov 22, 2023

Copy link to clipboard

Copied

What settings does you use at the password protection? 

Votes

Translate

Translate

Report

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 ,
Nov 22, 2023 Nov 22, 2023

Copy link to clipboard

Copied

Custom Validation scrpit

 

event.rc = (app.response("Enter the password to edit this field:", "", "")=="1234");

 

this is not anything that needs major security - its only to help cut down on errors on internal data entry.  two groups of people using the form - and one group will have password.  not high level - just basic stuff but currenlty its handwritten form and terrible! 

Votes

Translate

Translate

Report

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 ,
Nov 22, 2023 Nov 22, 2023

Copy link to clipboard

Copied

Set a variable before the form reset. 

Ask for the password only if the variable is not set. 

Votes

Translate

Translate

Report

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 ,
Nov 22, 2023 Nov 22, 2023

Copy link to clipboard

Copied

thank you!!  

so currently it is only the default 

doc.resetForm()

 

how do i build that varible?  i have no skills!  just bumbling thru all this!

Votes

Translate

Translate

Report

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 ,
Nov 22, 2023 Nov 22, 2023

Copy link to clipboard

Copied

At document level use:

var during_reset = false ;

 

At the reset button:

during_reset = true;

resetForm();

during_reset = false;

 

Votes

Translate

Translate

Report

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 ,
Nov 22, 2023 Nov 22, 2023

Copy link to clipboard

Copied

thank you! 

I am not doing something correct - it still asks for the password on the fields that are password protected.  

 

here is now when i added to the individual field validation:

 

event.rc = (app.response("Enter the password to edit this field:", "", "")=="1234");var during_reset = false;

 

---Do i need to put the    var during_reset=false;     at a different place in the event line?  it is still asking for the password if there is data in the field -when hitting reset button evem after adding your statements above.  

 

thank you in advance for helping me! 

Votes

Translate

Translate

Report

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 ,
Nov 23, 2023 Nov 23, 2023

Copy link to clipboard

Copied

LATEST

Set the variable at document level:

Bild9.jpg

At the text fields use:

event.rc = during_reset || (app.response("Enter the password to edit this field:", "", "")=="1234");

 

Votes

Translate

Translate

Report

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 ,
Nov 22, 2023 Nov 22, 2023

Copy link to clipboard

Copied

Hi @Lana33791331lm4o 

 

++ Adding to the discussion

 

Acrobat 2017 is an EOL application. For more information, please go through the help page https://helpx.adobe.com/acrobat/kb/end-of-support-acrobat-2017-reader-2017.html

 

~Amal

Regards
Amal

Votes

Translate

Translate

Report

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 ,
Nov 22, 2023 Nov 22, 2023

Copy link to clipboard

Copied

ok.  thank you.  

 

that said - we will be upgrading to the curent version - so how will that impact my forms i am creating now?  will it translate into the latest version?  Just curious.  

Votes

Translate

Translate

Report

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 ,
Nov 23, 2023 Nov 23, 2023

Copy link to clipboard

Copied

" so how will that impact my forms i am creating now?"

It won't make any difference.

Votes

Translate

Translate

Report

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