• Resolved sivkh

    (@sivkh)


    Hi

    I want to show an image if a custom field is checked with the value “extreme”, or of a swicher is swiched to yes. What are the settings to target that conditon?

    I use Elementor Pro.

    Thanks for any help!

    Best regards,
    Siv Kristin

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author rtowebsites

    (@rtowebsites)

    Hello @sivkh,

    you can create a custom checkbox field (true/false for ACF) “extreme” (we use ACF Fields for that).

    Enable the checkbox for a page and edit this page with Elementor.

    Add any widget u want (in your case the Image Widget), use the widget just like ever.

    In the widget switch to Advanced -> Dynamic Conditions

    select Dynamic Tag -> our custom field (in our case ACF Field with the key “extreme”)

    Show/Hide -> “Show when condition met”.
    Condition -> “Is equal to”
    Compare Type -> “Text”
    Conditional value -> “1” (without the “)

    You can enable the Debug mode to check if u need to enter something other like 1. (It is in ACF the for the True/False field the “1”)

    Debug-Mode -> “on”
    Save the page
    Switch to the page (not the preview mode, it only works on the live page)
    Check the Value on DynamicTag-Value
    Use this value as “Conditional value”

    So that should be a complete step by step guide for you. if you need any further help just rewrite on this issue. We mark this issue as resolved.

    Oh my, I kept on thinking that this would work on a page with a switcher on it. Maybe it’d be nice to clarify that Dynamic Conditions does NOT work with changing Frontend elements. I spend 4 hours now with ACF, CPT and Dynamic Conditions Tutorials, just to figure out that I still need my own javascript to react to changing elements (like a switcher to let the page visitor turn an image on/off).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show if checked’ is closed to new replies.