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

Overwriting an auto populated text field from a drop down box.

New Here ,
Jan 12, 2023 Jan 12, 2023

Copy link to clipboard

Copied

I have a form that I am building that has a drop box that will auto populate a text field based on what the end user selects..  I also need the user to be able to overwrite that information with their own in the populated text field.  I’ve searched, but cannot find a solution that works for what I need.  When the populated text is overwritten, it defaults back to  the original text.  Any help would be appreciated., thank you.

TOPICS
How to , JavaScript , PDF forms

Views

706

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 1 Correct answer

Community Expert , Jan 12, 2023 Jan 12, 2023

Votes

Translate

Translate
Community Expert ,
Jan 12, 2023 Jan 12, 2023

Copy link to clipboard

Copied

From your description I'm assuming that your autopopulate script is in the calculate event in the text field?  If so then delete it.

Put the script for auto-populating the text field in the "Validation" script for the dropdown. Then data in the text field can be overwritten manually.  

 

 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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 ,
Jan 12, 2023 Jan 12, 2023

Copy link to clipboard

Copied

Hi,

Did you have a look on this post:

https://community.adobe.com/t5/acrobat-discussions/is-there-a-way-to-allow-end-user-to-overwrite-a-a...

Here is an other example with a drop down box.

@+

 

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
New Here ,
Jan 12, 2023 Jan 12, 2023

Copy link to clipboard

Copied

LATEST

Thank you!  This worked.

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