• Resolved Josh

    (@1geeky)


    Thanks for the great plugin,

    I need to show a text based on which two checkboxes are selected.
    say the user wants to see the cost of a travel by choosing his/her origin and destination from 2 groups of checkboxes. after the determination of two choices, a cost field would appear.

    I don’t see how it’s possible to achieve with your plugin.

    This is the sample code:

    From (required)
    [checkbox* checkbox-origin exclusive "City1" "City2" "City3" "City4"]
    
    To (required)
    [checkbox* checkbox-destination exclusive "City1" "City2" "City3" "City4"]
    
    [group city1-city4]
    It costs : [text text-cost "$10"]
    [/group]

    Regards

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

    (@jules-colle)

    Nice use case. Haven’t thought of something like this before. I know it’s kind of dirty but you could probably solve it by nesting groups like so:

    [group city1][group city4]
    It costs : [text text-cost "$10"]
    [/group][/group]

    Then use these conditions:

    if checkbox-origin equals "City1" show city1
    if checkbox-destination equals "City4" show city4

    Let me know if it works. I’ll have to think about extending the plugin to solve these kind of cases in a nicer manner.

Viewing 1 replies (of 1 total)
  • The topic ‘Conditions that depend on two different chetboxes’ is closed to new replies.