• Resolved supadigital

    (@supadigital)


    Hi

    Is it possible to display the options available in a checkbox based on conditions?

    EG:

    This is a checkbox label
    – checkbox option 1
    – checkbox option 2
    – checkbox option 3

    I would like to show or hide options 1,2 and 3 based on conditions from earlier in the form. As in show, option 1 if condition is true. or show option 2 and 3 if condition is true. Is this possible?

    I need to show a list of options that is exclusive and those options must show based on conditions.

    I look forward to your feedback. Thanks a million.

Viewing 1 replies (of 1 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    Hey, it’s kind of possible but not really.

    The plugin currently doesn’t support modifying possible values based on a condition. But as it turns out, checkboxes are an exception, as they are the only field that can be added multiple times with the same name:

    [checkbox check "1" "2" "3"]
    [checkbox check "3" "4" "5"]

    They will resolve to one field during submission.

    So, you could wrap the second checkbox with a group, and only display it when a condition is met.

Viewing 1 replies (of 1 total)
  • The topic ‘Show Checkbox Options based on Conditions’ is closed to new replies.