I’ve coded 4 dropdown boxes with the help of the example of Code Queen (many thanks) that presents the result on a textbox, and I wood like to display a single image on the repeater, associated to the result of that textbox:
Your question is not clear enough.
How do you bind the data to the repeater in the first place? Via dataset?
Is the data collection for the repeater different than the collection where the image is stored?
If they’re different collections, why don’t you connect them using a reference filed type (and you preferred a text field instead)?
Is the imagem value the value what you need?
if you chose AJP in the first dropbox the other ones will populate and retrieve a reference on textbox1…depending on that reference, repeater should load an image associated to that specific reference.
J. D. the repeater is on the right side of the dropboxes…
The dropboxes will reflect a user information that will lead to a distinct reference displayed in the textbox (read only). For each reference I would like to display a photo and only one photo that will change as reference in the textbox changes…
So why do you use a repeater? A repeater should be used for repeating items and you only display a single image. Why wouldn’t you just use a dynamic image (based on the user input) without a repeater?
@jonatandor35 Finally I understand what you are saying…please forgive me, because I’m newbie in JS…so, I tried your solution…I put an image field, connected to a dataset (“CrashBars”) that filters images from the dataset based on dropdown named “cor”. It works for the first records…it loads the photo that corresponds to the dropdown choice…but now I have another problem…the choices from that dropdowns repeats over and over along my dataset…so if I change the other 3 dropdowns, and choose some choice from the dropdown “cor”, it loads the first photo that corresponds to that choice…
Can I, somehow filter the image result based in more than one filter??