Triggering check boxes

User 10077 Photo


Senior Advisor
1,096 posts

On this form:
http://fundraisingnetwork.org/forms/fb_ … l_pop.html

Near the bottom of the form, there is a section entitled "What types of fundraising info would you like?" By default, "Any kind of fundraising information" is checked. There are several choices there. Checking and unchecking the boxes make various sub-sections appear and disappear.

Here is what I want to do. Here is each condition and what I would like to happen if the user takes a particular action.

---- CONDITION 1 ----
If this condition exists:
the box "Any kind of fundraising information" is checked AND none of the other boxes are checked

If this action happens: the visitor unchecks "Any kind of fundraising information"
The result should be: all of the other boxes should become checked so that the sub-sections below appear.
OR
If this action happens: the visitor checks any box except "Any kind of fundraising information"
The result should be: "Any kind of fundraising information" becomes unchecked.

---- CONDITION 2 ----
If this condition exists:
the box "Any kind of fundraising information" is checked AND none of the other boxes are checked

If this action happens: the visitor checks "Any kind of fundraising information"
The result should be: all other boxes become unchecked triggering their corresponding sub-sections to disappear and "Any kind of fundraising information" remains checked.


I hope that makes sense.
ASK ME ANYTHING
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.

Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/
User 187934 Photo


Senior Advisor
20,271 posts

What about using radio buttons and checkbox combinations?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 10077 Photo


Senior Advisor
1,096 posts

I thought about putting the "Any ideas" box as its own separate group. Then, I can set a condition to disappear if any of the others are checked. Or, as you suggested, I can make it a radio box that will make the other selections appear. I'll experiment with it tomorrow.

Thanks for the idea!
ASK ME ANYTHING
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.

Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/
User 38401 Photo


Senior Advisor
10,951 posts

When you are working with multiple box combos what you need to do is allow for each possibility in your conditions. In other words, let's say you have 4 boxes and 3 possible things that happen depending on the combo of boxes checked. You need to have each combo conditioned for on "and" off like so:

NOTE: the "ANDs" might be ORs, not at home right now so I don't recall which one it is at the moment.

Conditional 1
If 1 IS checked and if 2 IS checked and if 3 IS checked and if 4 IS NOT checked
Do this

Conditional 2
If 1 IS checked and if 2 IS checked and if 3 IS checked and if 4 IS NOT checked
Do this

If 1 IS checked and if 2 IS checked and if 3 IS NOT checked and if 4 IS NOT checked
Do this

If 1 IS checked and if 2 IS NOT checked and if 3 IS NOT checked and if 4 IS NOT checked
Do this

If 1 IS NOT checked and if 2 IS checked and if 3 IS NOT checked and if 4 IS NOT checked

And so on until you have covered all the possibilities.

Basically write your conditional just like you have it worded in your original post covering each of the possibilities needed.
User 10077 Photo


Senior Advisor
1,096 posts

Thanks. I just got to do that yesterday with some PHP conditionals. I wrote them and then after testing had to go back because I didn't put in all the conditionals.

In this case, I was trying to figure out how to make boxes check and uncheck (which FB doesn't do) rather than appear and disappear (which FB does do). One of the other limitations of FB is that each element is limited to two conditions (which is probably plenty for most cases). I'm going to use radio buttons for part of it to make up for not being able to check/uncheck automatically.

Regardless, I'm glad that you brought up matching all conditions, because it's a great reminder that I have to really think through all the possible conditions. If I write out all the conditions like you did, then I can make sure that I don't miss any.
ASK ME ANYTHING
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.

Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/
User 38401 Photo


Senior Advisor
10,951 posts

Ah my bad Brian, I didn't quite understand the question I guess, missed the part where you wanted it to do the checking and unchecking for you, sorry bout that.

I'm not sure though what you mean by the limitations of only 2 conditionals per element. I've done a couple pretty complex forms on it and I've not come across any limitations there. I'm guessing you're doing something different than I am though so if you can enlighten me there I'd appreciate it. I do know you can reference other elements and how their choices are selected within other elements over and over, I've done it quite a few times, but as I said, I'm not sure what context you mean that in. If I need to have an element that is referenced in multiple ways I just make the 1 conditional to include all things needed for all possibilities.

Anyways, if you could explain what you mean there either I will learn something or I'll have a work around or how it works for you. One of us will get something out of it I'm sure :)
User 10077 Photo


Senior Advisor
1,096 posts

Each individual element is limited to two conditions. This current project is a good example. The "controlling element" (we'll call "CE") has seven check boxes and any or all of those boxes may be checked or unchecked. Keep in mind that all CE choices (CE1-CE7) are part of the same checkbox element.

Based on what is checked in CE, other elements lower on the page (we will call them "SUB") appear or disappear. Each of the SUBs is its own element.

1. SUB1 appears when CE1 is checked and disappears when unchecked. No problem.

2. SUB2 appears when CE3 is checked...

3. SUB3 is different. SUB3 appears only when CE1, CE4, and CE5 are checked. SUB3, being one element, can only have two conditions: this and that, this or that. It cannot have three: this and that and that.

That is the limitation that I was speaking about.
ASK ME ANYTHING
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.

Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/
User 187934 Photo


Senior Advisor
20,271 posts

I can probably write you a JQuery script for anything not covered.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 10077 Photo


Senior Advisor
1,096 posts

Ok. Cool. Don't jump on it just yet. Let me see if I can do the workaround on FB first. I'd hate for you to work on a script that wasn't actually needed.
ASK ME ANYTHING
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.

Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.