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

Locking Fields from Reset Button

Community Beginner ,
Jun 28, 2024 Jun 28, 2024

Copy link to clipboard

Copied

Here's what I'm trying to do: I'm creating a fillable PDF with multiple text fields. The user completing the form will likely have information that is duplicated. I want to "lock" certain fields so the information doesn't need to be typed over and over.

 

For example - my secretary needs to fill out a form for multiple people in the same household:

 

Name: Joey Smith, Address: 123 Any St. Anytown CA 90210 (locked information), Phone: (123)555-4321 (locked information), Favorite popsicle flavor: Grape, Shoe size: 10 >> [Submit form, then click "Reset" button]

Name: Jimmy Smith, Address: 123 Any St. Anytown CA 90210 (locked information), Phone: (123)555-4321 (locked information), Favorite popsicle flavor: Orange, Shoe size: 6 >> [Submit form, then click "Reset" button]

 

Name: June Smith, Address: 123 Any St. Anytown CA 90210 (locked information), Phone: (123)555-4321 (locked information), Favorite popsicle flavor: Cherry, Shoe size: 8 >> [Submit form, then click "Reset" button]

 

And so on...

 

As you can see, the "Address" and "Phone" field was excluded from "reset". However, she might want to release/unlock all fields for a new household. I hope that makes sense.

 

Maybe "locked" isn't the right word and that's why I'm having trouble? Can someone kindly help me with this? I feel like it's something that can be done, but I'm at a loss how to make it happen! Thank you SO MUCH in advance to anyone who might be able to help!!

TOPICS
Create PDFs

Views

172

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

correct answers 2 Correct answers

Community Expert , Jun 28, 2024 Jun 28, 2024

Reset doesn't mean "set to nothing", it means "revert to the default value".

So you can add this script to the fields whose values you want to keep. This way, when they are reset, they will recover the value they contain.

Use it as an "on blur" action:

event.target.defaultValue = event.target.value;

Votes

Translate

Translate
Adobe Employee , Aug 07, 2024 Aug 07, 2024

Hi @teearetee 

 

That is possible. 

You or the user needs to open Reset Button properties> Add > "Select Fields to Reset." Please check the picture attached.

 

Reset Form Field CustomisationReset Form Field Customisation

 

Let us know if you have any questions

~Tariq

 

Votes

Translate

Translate
Community Expert ,
Jun 28, 2024 Jun 28, 2024

Copy link to clipboard

Copied

Reset doesn't mean "set to nothing", it means "revert to the default value".

So you can add this script to the fields whose values you want to keep. This way, when they are reset, they will recover the value they contain.

Use it as an "on blur" action:

event.target.defaultValue = event.target.value;

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 ,
Jun 28, 2024 Jun 28, 2024

Copy link to clipboard

Copied

Thanks for your quick response! Is there a way for the user to select which fields retain their value? Like "check this box" or "click this button" to exclude from resetting the value?

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 ,
Aug 07, 2024 Aug 07, 2024

Copy link to clipboard

Copied

LATEST

Hi @teearetee 

 

That is possible. 

You or the user needs to open Reset Button properties> Add > "Select Fields to Reset." Please check the picture attached.

 

Reset Form Field CustomisationReset Form Field Customisation

 

Let us know if you have any questions

~Tariq

 

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