Change image based on select option

Forminator Forms
8 September, 2022 07:45:17
mylarbi
Topics: 3
Messages: 6
Hi, I have three different logo images as "logo-red, logo-blue, logo-green" in my media folder.
I have a select option on my Forminator form, listing "red, blue, green".
I want a set up whereby only one logo is shown at a time, at the same place on the PDF.
So if the form user selects say "red" on the form, then only logo-red is shown on the PDF.
If the form user selects say "blue" on the form, then only logo-blue is shown on the PDF.
If the form user selects say "green" on the form, then only logo-green is shown on the PDF.

Please how do I do this?
8 September, 2022 08:39:09
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

You must be able to change the "Value" of "Image" object by using "Actions" and "Conditions".

See please screenshot attached.

By default, it will be used https://example.com/1.png
If {select-1} will be rendered as green - it will be used https://example.com/2.png
If {select-1} will be rendered as red - it will be used https://example.com/3.png

To see which value must be used for comparison you must be able to create "textarea" and map it with field slug.

We remain at your service.

We would really appreciate your feedback at WordPress.org!
8 September, 2022 09:46:49
mylarbi
Topics: 3
Messages: 6
Hi, that works great!
Personally, I wasn't far from the solution as I previously tried the 'Actions and Conditions'. But I got lost as used the 'Show' option under the 'Action'. I didn't discover the 'Change' option.
Your guidance has worked for me. Thanks