Skip to main content
Participant
May 10, 2023 3:44 AM UTC
Question

Drop down to populate text field and image

I'm new to doing anything in Adobe other than just reading a pdf.. so I apologize. I've searched this forum and I've been able to get close to what I want but something just isn't working and I think it's my dumbness... haha

Ok here's what I'm trying to do. I'm making a form and I want to pick a town from the drop down and it populate a street address in a text field and populate an image of that address's signature at the bottom. Example: Selecting New York, NY in my drop down would auto fill 123 example st in the text field and my signature image will pop up... buthten if I select Los Angeles, Ca in the drop down the text box would change to 456 Hollywood Dr and my signature would hide and my friend's would become visible.  I've got it  up until I make a different selection and the now non selected signature doesn't return to hiding... so then I end up with both images visible... Help? please?

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Participant
May 24, 2023 7:16 PM UTC

Thisi s still an issue for me. Does anyone else have any advice?

Translate
Nesa Nurani
Community Expert
Community Expert
May 25, 2023 6:07 AM UTC

Share your file.

Translate
Participant
May 25, 2023 7:03 PM UTC

Unfortunatly I can't as it is for work and contains senstive information. 

Translate
Nesa Nurani
Community Expert
Community Expert
May 10, 2023 6:23 AM UTC

You can use 'display' property to show/hide Image or a button fields depending on dropdown field value.

Let's say your image fields are called "Image1" and "Image2", as 'Validate' script of dropdown field you can use something like this:

this.getField("Image1").display = event.value == "New York" ? display.visible : display.hidden;
this.getField("Image2").display = event.value == "Los Angeles" ? display.visible : display.hidden;

Change "New York" and "Los Angeles" for actual dropdown values.

Translate
Participant
May 10, 2023 1:18 PM UTC

ok it is working for the first line. New york's image disappears when I select another option, but none of the other options' images are coming up.. 

Translate