PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Conditional Confirmation for Checkboxes

  1. ingroup
    Member

    Hi,

    I'm trying to setup different confirmation messages based on what a user checks off, which is working great with the new conditional confirmation feature. But I also want to setup a different confirmation message if more than one checkbox is selected. Is there a way to accomplish this? I thought using the default confirmation would work but that did not. Right now, if a user selects more than one checkbox, it will always return the confirmation message based on the first checkbox selected...

    Thanks!

    Posted 11 years ago on Thursday April 25, 2013 | Permalink
  2. ingroup
    Member

    Hi, does anyone have an answer for this issue?

    Posted 11 years ago on Wednesday May 1, 2013 | Permalink
  3. David Peralty

    There isn't any built-in way to do this currently. Our conditionals aren't complex enough to allow for multiple conditions like you've asked for.

    Posted 11 years ago on Wednesday May 1, 2013 | Permalink
  4. ingroup
    Member

    Is there a workaround or will there be an update to include this feature?

    Posted 11 years ago on Wednesday May 1, 2013 | Permalink
  5. David Peralty

    You could give numeric values to each selection and use the pre-submission hook and some math to fill out a hidden field and use that as your conditional shortcode comparison value.

    If you have five options it would be something like:
    First / 1
    Second / 3
    Third / 7
    Fourth / 9
    Fifth / 15

    Then you could have conditions for each of them, and any combination.
    So if value = 18 then you know that the Second and Fifth option were selected.

    Posted 11 years ago on Wednesday May 1, 2013 | Permalink
  6. ingroup
    Member

    That sounds like a great idea, thanks so much for your help David!

    Posted 11 years ago on Wednesday May 1, 2013 | Permalink
  7. David Peralty

    Just make sure you can't use the others to add up to one of the values.

    I didn't use 1/2/3/4/5 because two plus three is five and four plus one is five. Each combination has to be unique for you to really take advantage of this.

    Posted 11 years ago on Wednesday May 1, 2013 | Permalink