• Resolved johanna75

    (@johanna75)


    hi!
    How to set in conditional logic to show/hide a field IF another field checkbox is checked?
    Because i have only empty/not empty/contains/more than etc etc…

    THK very much for help!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @johanna75

    You can try the “Not Empty” in the conditional logic field settings. It will display the child field if any of the checkbox options is checked.

    Regards.

    • This reply was modified 3 years, 4 months ago by Champ Camba.
    Thread Starter johanna75

    (@johanna75)

    Thanks for answer
    I did it but , unfortunatly it didn’t work for me.

    Is it because i use a snipet you gave me few months ago?
    This one:

    add_filter('um_get_field__signature-numerique', function( $data ){
    
        if(  um_user("signature-numerique") ){
            $data['disabled'] = 'disabled';
        }
        return $data;
    });
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @johanna75

    Please try disabling the code and see if the conditional logic field works.

    Regards,

    Thread Starter johanna75

    (@johanna75)

    I just disable snipet but the text is nerver hiding…

    what is strange is on conditional logic, on the dropdown menu list it display not the metakey name BUT the TITLE Name of the field.
    Is it ok?

    And are u sure telling for a checkbox NOT EMPTY means checked?

    • This reply was modified 3 years, 4 months ago by johanna75.
    • This reply was modified 3 years, 4 months ago by johanna75.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @johanna75

    Do you have the same conditional logic settings in the screenshot?
    https://drive.google.com/file/d/11GgrkgiaKRKwraE5npXBWlqJocsf5vNj/view?usp=sharing

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hey there!

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

    Thread Starter johanna75

    (@johanna75)

    Hi
    no i do not have “is checked” in none of my dropdown menu.
    I can’t see “is checked”

    I have:
    “show” if “field5” “empty”

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @johanna75

    The is_check is my test field. Have you tried using the Not Empty for field5?
    “show” if “field5” “not empty”

    Regards,

    Thread Starter johanna75

    (@johanna75)

    Ok now it’s working!
    Thk!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘conditional logic’ is closed to new replies.