Skip to main content
Participant
May 10, 2023
Question

Drop down to populate text field and image

  • May 10, 2023
  • 2 replies
  • 857 views

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 has been closed for replies.

2 replies

Participant
May 24, 2023

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

Nesa Nurani
Community Expert
Community Expert
May 25, 2023

Share your file.

Participant
May 25, 2023

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

Nesa Nurani
Community Expert
Community Expert
May 10, 2023

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.

Participant
May 10, 2023

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..