SOLVED

form logic

Go to solution
Anonymous
Not applicable

form logic

hello, 
I have a form and need it to do some rule-based behavior. Firstly I need to define  if a user is in a service area; I have  progressive form with 7 fields, hiding 6 of them. The visible field has 3 checkboxes. Clicking on two of three checkboxes in the field will expose the rest of the fields in the form, but clicking on the third one should show a message that the user is out of our service area. Where to start?   
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Edward_Unthank_
Level 10

Re: form logic

Hey Paul:

Some moving pieces here, especially when you're looking to combine progressive profiling with conditional visibility. If a field is both conditionally visible and progressively profiled, you have a whole thing on your hands. Laying in a third element (custom JavaScript) becomes even more complicated with Forms 2.0, because fields are pulled in through external forms2.0 JavaScript. 

Here's a little whiteboarding of how you can do this if you abandon progressive profiling in this case:

0EM50000000Sppe.jpg

The checkbox values in this explanation are "green1," "green2," and "red1." The conditional visibility logic is based on the "Checkboxes" type field containing those values.

0EM50000000Sppo.jpg

0EM50000000Sppt.jpg

Note that conditional visibility on these can't get very complicated, so the way we'd be layering in "if/then" levels would be through conditionally showing a fieldset AND then conditionally hiding the fields within that fieldset. With some basic CSS you can make it look fine there. You also don't have the option to say "contains x AND contains y," so in the case of only wanting to show Green (in this diagram) when both are checked, you'll either have to accept that a single check shows the value or you'll have to combine the two green options into a single checkbox.
 

Cheers,

Edward Unthank | Founder, Etumos

View solution in original post

3 REPLIES 3
Edward_Unthank_
Level 10

Re: form logic

Hey Paul:

Some moving pieces here, especially when you're looking to combine progressive profiling with conditional visibility. If a field is both conditionally visible and progressively profiled, you have a whole thing on your hands. Laying in a third element (custom JavaScript) becomes even more complicated with Forms 2.0, because fields are pulled in through external forms2.0 JavaScript. 

Here's a little whiteboarding of how you can do this if you abandon progressive profiling in this case:

0EM50000000Sppe.jpg

The checkbox values in this explanation are "green1," "green2," and "red1." The conditional visibility logic is based on the "Checkboxes" type field containing those values.

0EM50000000Sppo.jpg

0EM50000000Sppt.jpg

Note that conditional visibility on these can't get very complicated, so the way we'd be layering in "if/then" levels would be through conditionally showing a fieldset AND then conditionally hiding the fields within that fieldset. With some basic CSS you can make it look fine there. You also don't have the option to say "contains x AND contains y," so in the case of only wanting to show Green (in this diagram) when both are checked, you'll either have to accept that a single check shows the value or you'll have to combine the two green options into a single checkbox.
 

Cheers,

Edward Unthank | Founder, Etumos
Joe_Barrett
Level 2

Re: form logic

So this very expensive platform doesn't offer easy/simple form logic? like Schedule a call?  > pick a day > Pick A time slot? That is unfortunate. Maybe integrating with a more robust form creator, like gravity forms for a wordpress site would be a solution?

SanfordWhiteman
Level 10 - Community Moderator

Re: form logic

Visibility Rules are your friend(s).