I think your use case is too complex to handle with conditional logic as you wrote it. You want to do a combination of AND and OR
[php]
(("A == NO" AND B IN (1,2,3,4) OR "C == YES")
which is not currently possible with the conditional logic in the form builder. You may have to think of a different way to phrase the questions as qualifications so they can arrive at "yes, I would like to become a member" which is likely the goal?
If the answer to A is YES, they never get the option to join. Maybe what you could do is make the submit button conditional based on the answer to question A? Or have an additional form as the qualifying question. If they're not a member, then you can send them from form one to the second form, which would have questions B and C, which you can certainly use in conditional logic to show field D. If they're already a member, are they even going to be interested in the form?
What should happen if they do NOT meet the criteria (if they answer NO to C or check B5, correct?) Do you show them anything? Also, what happens at the end if they say, NO, they do not want to become a member? Can they still submit the form?
You could also just accept their answers on the front end (just ask all the questions) then use more complex conditions in functions.php to customize their notification email or the confirmation message they see:
- "We're sorry, you do not qualify for this program."
- "Are you sure you don't want to become a member? Check out all these benefits."
- Based on our preliminary evaluation, you qualify for membership. An associate will be in touch with you soon.
I've found that with conditional logic you sometimes needs to revise the workflow or thought process to make it work with simple AND/OR logic. If you can post your complete form and what should happen in every case (flowchart?) we may be able to help you come up with a solution.
Posted 13 years ago on Friday September 2, 2011 |
Permalink