Copy link to clipboard
Copied
Hi all,
I have created a PDF form via Adobe Acrobat Pro DC (Version 2021.007.20099). However, on a dropdown menu I have 7 items. Is it possible to display some predefined text based on the selection the end user selected.
E.G. The dropdown includes the following items:
Town
Parish
If either of these are selected, I would like an information text box displayed with further instructions. Otherwise the text should remain hidden.
Ideally the information would differ based on the selection, however I can work around this if not possible.
Is what I am trying to achieve possible and if so, can you please guide me to how/where I can do this.
Thank in advance
Copy link to clipboard
Copied
As validation script of dropdown field use this and change text field name to your actual field name:
var f = this.getField("Textfield");
if(event.value == "Town")
f.value = "Your text goes here";
else if(event.value == "Parish")
f.value = "Your text goes here";
else f.value = "";
Also in dropdown field properties -> options tab tick 'Commit selected value immediately'.
Copy link to clipboard
Copied
As validation script of dropdown field use this and change text field name to your actual field name:
var f = this.getField("Textfield");
if(event.value == "Town")
f.value = "Your text goes here";
else if(event.value == "Parish")
f.value = "Your text goes here";
else f.value = "";
Also in dropdown field properties -> options tab tick 'Commit selected value immediately'.
Copy link to clipboard
Copied
Hi Nesa,
Thank you so much for your assistance. I have made the text box read only and it works perfectly 🙂
Copy link to clipboard
Copied
Hi Nesa, great answer! I would like to build on your solution and include multiple dropdown values in generating the text.
My dropdown values are,
Type, - (This will drive the standard language definition template selection)
Frequency,
Date,
Target
=
The final defition field.
There are 4 standard definition template options and the dropdown values will not correlate so I the 3 selected values to populate within the selected standard definition template.
If you could assist me with the general command and place holders, I can format the specific values.
Thank you!
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more