Support » Plugin: Contact Form 7 - Conditional Fields Pro » Is it possible to show conditional groups based on all checkboxes being checked?

  • Resolved skafte

    (@skafte)


    Hi there,

    Hope you are well and thanks so much for providing this great plugin to the WP community!

    I am hoping that someone might be able to help me here. Is it possible somehow to create conditional groups based on whether all checkboxes in a checkbox field has been checked?

    I can’t work out what the value needs to be…?

    Thanks!

    Jonas

    • This topic was modified 12 months ago by  skafte.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    not possible in an elegant manner yet, but it will be with the next update, or a bit quicker if you are interested in the pro version. http://bdwm.be/wpcf7cf/contact-form-7-conditional-fields-pro/

    For now you can fix it by nesting groups:

    [group g1][group g2][group g3][group g4]
    This will be visible if all 4 checkboxes are checked.
    [/group][/group][/group][/group]

    Conditions:

    if [checkbox1] equals "choice 1" then show [g1]
    if [checkbox2] equals "choice 2" then show [g2]
    if [checkbox3] equals "choice 3" then show [g3]
    if [checkbox4] equals "choice 4" then show [g4]
    skafte

    (@skafte)

    Hi there @jules-colle,

    Thanks so much for your quick response and suggested solution to this!

    I’ve been playing around with it, but I haven’t actually managed to make it work (in the way I was hoping for). However, I’ve decided that it’s fine to just show all fields at all times anyway.

    I do hope to see it possible, or easier anyway, to make conditional fields based on all checkboxes being checked in a future release of this otherwise great plugin!

    Many thanks and all the best.

    skafte

    (@skafte)

    PS. For anyone else interested in finding a solution for this, and for you @jules-colle, in case it’s useful for consideration in regards to the further development of your plugin – I found another approach here: https://millionclues.com/wordpress-tips/show-field-all-checkboxes-checked-contact-form-7/

    • This reply was modified 12 months ago by  skafte.
    • This reply was modified 12 months ago by  skafte.
    • This reply was modified 12 months ago by  skafte.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is it possible to show conditional groups based on all checkboxes being checked?’ is closed to new replies.