• overspeed99

    (@overspeed99)


    I have an ACF field group with a checkbox field in it that has three checkbox options. I have DynamicConditions installed and activated.

    On an Elementor page I have three images. I would like each of the three images to either display or hide based on the ACF checkbox values. I cant seem to make this work.

    On image #1, I go to Advanced > Display Conditions and set the Dynamic tag to ACF Field then I click the wrench and set the Key to the name used in ACF. I would expect at this point Display Conditions would then allow me to drill down further to select the specific checkbox choice of the three available and then set the Show/Hide and Condition values.

    Is my specific scenario and use case beyond what this plugin is able to process? Is there another way i’m just not seeing?

    Here is the debug output.

    Element: image-17c1a0a (widget)
    DynamicTag-Tag: acf-text
    DynamicTag-Key: field_65d7be016fb52:garfield
    DynamicTag-Value:
    DynamicTag-Value-Raw:
    Check-Value:
    Check-Value2:
    Condition-Type:
    Condition:
    Show if not_empty
    Condition met: no
Viewing 1 replies (of 1 total)
  • Thread Starter overspeed99

    (@overspeed99)

    Update

    Seems that Elementors preview mode messes up ACF dynamic tags. I visited the direct URL instead and get below. I wanted to see how ACF stores checkbox data. Seems that ACF data is stored using field names rather than the usual 1s and 0s. (1 being checked and 0 or blank not checked). Here is the debug output when not using Elementor preview mode:

    Element: image-17c1a0a (widget)
    DynamicTag-Tag: acf-text
    DynamicTag-Key: field_65d7be016fb52:garfield
    DynamicTag-Value: Open Day, Open Night
    DynamicTag-Value-Raw: Open Day, Open Night
    Check-Value: Open Day
    Check-Value2:
    Condition-Type: default
    Condition: Show if contains
    Condition met: yes

    I configured this image as follows:

    Dynamic Tag: ACF Field (then key value)
    Snow/Hide: Show if met
    Condition: contains
    Conditional value: Open Day (or any of the three checkbox choices)
    All other settings: default

    It seems that this option may give me what I’m looking for though I’m not sure if its the ‘correct’ way to do it.

Viewing 1 replies (of 1 total)
  • The topic ‘Display Condition for ACF checkbox with multiple values’ is closed to new replies.