Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


trying to assign certain fields based on selection

New Here ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

I have a drop down field with job titles and each job title has an assigned number or program code for billing.  How do I autopopulate the code in a different field based on the job title the person selects at the top?  For instance if Administrative Assistant is selected at the top of the form then at the bottom of the form in the specific field it will put the number "506"

Thanks

TOPICS
How to, PDF forms

Views

241

Likes

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 Community Professional ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

Do any of the job titles have the same code, or is there a unique code for each job title? If the latter, you can set the export value of each dropdown item to the corresponding code, and then set the other field value to the export value, using a custom Keystroke script for the dropdown.

Likes

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 Community Professional ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

LATEST

George has the right answer. If the only one other field is affected, then a unique export value will work. But for more complex behavior you need some more complex scripting. 

 

You can read about list programming here:

https://acrobatusers.com/tutorials/change_another_field/

https://acrobatusers.com/tutorials/list_and_combo_in_lc/

https://www.pdfscripting.com/public/List-Field-Usage-and-Handling.cfm

 

There are some examples that show scripts very similar to what you want. 

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

Likes

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