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

Adobe Acrobat Pro DC/Dropdown List/Automatically texts in fields

Explorer ,
Aug 28, 2018 Aug 28, 2018

Hi! I need help creating a form in adobe Pro Dc. I want to creat a Dropdown List and when the final user select one option in other field will show up a text not editable. For example: If you choose a Country in other field automatically appear the zip code of the country that you chosen. I´ll appreciate your help! I´ve been searching a lot  about this function but I can´t find anything.

TOPICS
PDF forms
21.5K
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 ,
Aug 30, 2018 Aug 30, 2018

In case you didn't get it, here's what I wrote:

You entered the wrong field name in the script... You wrote "Dropdown7" instead of "Dropdown19".

Also, I would recommend to tick the option to commit the selected value immediately, under the drop-down's Properties, Options tab.

Do both things and then try it again.

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
Community Expert ,
Aug 29, 2018 Aug 29, 2018

Apply the zip-code as the export value of each item in the drop-down field, and then use this code as the calculation script of the text field:

event.value = this.getField("Name of drop down field").valueAsString;

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
Explorer ,
Aug 29, 2018 Aug 29, 2018

Thanks!!! In wich one calculation script? Calculation, validation or accions/ run java script.

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 ,
Aug 29, 2018 Aug 29, 2018

At calculation.

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
Explorer ,
Aug 29, 2018 Aug 29, 2018

There´re two options in calculation. In wich one is it?

1.jpg

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 ,
Aug 29, 2018 Aug 29, 2018

The last is for Javascript code.

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
Explorer ,
Aug 29, 2018 Aug 29, 2018

It doesn´t work.

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 ,
Aug 29, 2018 Aug 29, 2018

Care to elaborate?

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
Explorer ,
Aug 29, 2018 Aug 29, 2018

Thanks for your help. I did all the instructions that you tellme but It doesn´t work.

When the final user will select a option from the dropdown list I want that the export value of each dropdown list option will appear in another text field not editable.  So, with the script that you sendme it doesn´t recognize wich value export have to in show up in the other text field.

If you know how can I do please help me!

Thanks!

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 ,
Aug 29, 2018 Aug 29, 2018

I will need to see the actual file to be able to help you further.

You can share it with us via Dropbox, Google Drive, Adobe Send & Track, etc.

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
Explorer ,
Aug 30, 2018 Aug 30, 2018

Hello!! Did you received my email?

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 ,
Aug 30, 2018 Aug 30, 2018

Yes, and I've replied to it...

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 ,
Aug 30, 2018 Aug 30, 2018

In case you didn't get it, here's what I wrote:

You entered the wrong field name in the script... You wrote "Dropdown7" instead of "Dropdown19".

Also, I would recommend to tick the option to commit the selected value immediately, under the drop-down's Properties, Options tab.

Do both things and then try it again.

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
Explorer ,
Aug 30, 2018 Aug 30, 2018

Thankyou very much!!! I appreciate all your friendly help. It works!!!!

If by chance you know how to place a picker calendar I would really appreciate it if you can help me. I already tried downloading the11.jpg toolbar for acrobat dc, but when I choose the calendar it is missing the type of calendar that I want to choose.

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 ,
Aug 30, 2018 Aug 30, 2018

You don't need any third-party plugins. Simply set the field's Format to Date.

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
Explorer ,
Aug 30, 2018 Aug 30, 2018

I already changed the format to date, but when you open the document in acrobat reader it doesn´t work.

Acrobat DC:

1.JPG

Acrobat Reader XI:

2.JPG

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 ,
Aug 30, 2018 Aug 30, 2018

Use Acrobat Reader DC. The feature is not available in version XI.

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 ,
Jul 21, 2025 Jul 21, 2025

I see this has been since 2007 *but* I wanted to share that now when we develop forms through Adobe Pro DC  and share them in GOOGLE Drive, Cloud, Sharepoint, any shared software, the formulas do not work correctly.  However, if we send them in a MS Email (not Gmail synced to Google Drive) with the .pdf file attached and "save as" to their hard drive, then the user retrieves file from their hard drive, then the entire file works fine with the calculations.  We have run into this for the last year or so - and once we requested for outside users not to use the Cloud, Google, any shared software, etc. it corrected the problem.  Is anyone else having these problems?  We have resolved this issue through our requests of saving the pdf file that we send through MS Office email to their hard drive only.  Any calculated form developed through Adobe Pro DC is doing this on all our forms now.  In June 2025, we sent the pdf calculated file to users GMAIL email account and if that user is synced to their GOOGLE Drive, the form calculations do not work either.  We resolved that issue with asking users to download MS Office email then we sent the calculated form .pdf file to their MS Office email account, saved on their hard drive, then retrieved from their hard drive and it worked fine.  Started in 2022-23 and issues have continued to present.  Anyone else having these issues? 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
Adobe Employee ,
Jul 29, 2025 Jul 29, 2025
LATEST

Hi @jmMDRS,

 

Hope you are doing well. Thanks for writing in!

 

From the description, it seems that there is an issue with how Google Drive saves the PDF file in its storage.

 

If the file comes out fine when opened through Email, it removes Acrobat from the contention list of issues.

The render engine of Acrobat is different from what Google Drive uses, and errors could occur when scripts or formulas are used.

 

Hope this clarifies your point.


Regards,
Souvik.

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 ,
Sep 17, 2019 Sep 17, 2019

Hi, I am trying a similar code. Issue:when I select productRow1, it overwrites description in ProductDescriptionRow2.

ProductRow1 should populate description in ProductDescriptionRow1 and CostRow1

ProductRow2 should populate description in ProductDescriptionRow2 and CostRow2

 

{var VarDescrip = { AB5645_Q25: {FullDescription: "6 Part Quantity 25", Cost: "6.00" }, AB5650: {FullDescription: "4 Part Quantity 50", Cost: "8.00"}
}};


function SetFieldValues(ProductRow1) {

// Populate fields with values from the Description Data Object
this.getField("ProductDescriptionRow1").value = VarDescrip[ProductRow1].FullDescription;
this.getField("CostRow1").value = VarDescrip[ProductRow1].Cost;
}

function SetFieldValues(ProductRow2) {

// Populate fields with values from the Description Data Object
this.getField("ProductDescriptionRow2").value = VarDescrip[ProductRow2].FullDescription;
this.getField("CostRow2").value = VarDescrip[ProductRow2].Cost;
}

All properties of the 2 dropdowns ProductRow1 and ProductRow2 and the corresponding Description and Cost fileds are the same.

 

Dropdown Custom Keystroke Script 

//SetFieldValues()
if( event.willCommit ) {
if(event.value == " ") this.resetForm(["ProductDescriptionRow1", "CostRow1"]); else SetFieldValues(event.value);
}

Commit selected value immediately - Checked

Thank you very much in advance.  

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