Using Conditional Logic in Forms ~

Modified on Wed, 30 Nov, 2022 at 12:08 PM

In this example we will review displaying different options to your members based on selections they make in the form.  


If you want to display information when a user chooses member vs non member, that will require conditional logic, which simply means display information if something is true or not.

 

In this example we'll use member/non member.  First set up a radio button field with the two choices:




Now set up  a product which will be shown when the choice above is made:



Now click on the Advanced Tab and click on enable conditional logic:



In this case we have said that the product should display if the choice was:


  • member/non member is member
  • session choice is Tuesday


By using conditional logic your forms will be easier for your members to use and allow for the correct pricing to be in place.


Example #2 Selecting to pay by Credit Card or Check

(Please note, we do not recommend accepting payments via check through the forms. The tracking of check payments is a manual process that must be completed by your club.. In addition this is an advanced setup so be sure to fully test any logic you put in place)



1. First add a Radio Button that allows your members to select between Check and Credit card. 

be sure to update the field with the appropriate information  


2. Then you must go to the credit card field and use the 'conditional logic' on the credit card field. You only want it to display the credit card field if the "condition" on the radio button = Credit card.  



3.   If a club is allowing check or credit card payments on a form then they HAVE to add conditional logic to the authorize.net feed. Each feed added to a form just takes the form data and looks to see if there is something it is supposed to do with it. If you add an authnet feed without a condition then it will try to submit the entry for processing. And if the member picked check as the payment method there is no cc info. so the feed fails.

 

4.  "Conditional Logic" can be tricky, so  Be sure to fully test your conditions to be sure they work for any selection. 





On a different but related topic: If you are using a form to bill members please remember that an authorize.net feed must be set up for each form implemented, see Authorize.net Integration

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article