Change image based on select option

Forminator Forms
September 08, 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?
September 08, 2022 08:39:09
E2Pdf
Topics: 7
Messages: 3614
Support
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!
September 08, 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
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.