Are you looking to create conditional actions in WordPress without using a complex solution that requires coding skills? You’ve come to the right place!
Form actions are the heart of your WordPress forms. By applying the conditional logic functionality, you can create conditional actions and unleash the full power of actions on your contact form.
Whether you want to send conditional emails, redirect users to different landing pages, or display a customized success message to your users after they submit a form, the Conditional Logic add-on lets you check all these boxes.
Send conditional emails based on user selection in your form
Thinking about how to send email notifications or confirmations to only specific people when a form is submitted? What if your customers and users reach out to you but you want them to be contacted by a specific department only?
Luckily, our Conditional Logic add-on adds functionality to the Email action in your form builder, which allows you to send conditional emails based on what the user inputs on the form. It’s pretty simple.
Step 1: Create a form field in your contact form
First, you’ll need to set up a form field with options that trigger the specific email action. In our form, we use the Radio list field type but you can use any field type you like that supports conditional logic.
Each option represents the department. Based on which option the user selects, the right department will be notified by email. You’ll always want to set up 1 email action for each person or department that may need to be notified. 1 List Option = 1 Email action.
Step 2: Create an email action for every option in your form
Now that you set up your list field, you’ll head over to your Emails & Actions tab and set up your Email action. First, you create as many email actions as is the number of options by duplicating the Email action.
As we have 4 different options in our form, we need to create four different email actions. Each email action has to have the “To address” set for that specific department selected by user.
Step 3: Set up a trigger in the Conditional Logic section of your Email action
This last step is where all the magic happens. For the specific email action that relates to the user’s selection on the form, you need to set up a conditional trigger. Navigate to your Email action > Conditional Logic. Select the correct option from the Radio list field, so the action will fire only when the user will select that specific option.
That means, if your form visitor selects Marketing, only that department will be notified and the email notification will land in the inbox of the Marketing department. That’s it! Quick and easy setup that does not require any coding experience. You didn’t think was that easy, did you?
Showing a different success message to different customers
Another example of using conditional actions in WordPress is a Success message. This form action is often underestimated by many WordPress users but there is great potential when paired with conditional logic.
Want to display quiz results to your users or offer different lead magnets to different users? The Success message action is a powerful targeting tool that helps you design your content and keep users engaged with your website after the form is submitted.
Let’s take a look at our simple demonstration of how you can show different messages to different users based on the user’s input on the form. The steps are very much the same as the other actions.
1 Success Message Action = 1 User Selection. If you have two options in your select field, you would set up individual action for option 1 (Learn WordPress), and option 2 (Learn HTML Quickly).
You can also customize each Success Message action using the Summernote WYSIWYG editor integrated into Ninja Forms. You can insert images, links, tables, and merge tags for better personalization.
It’s time to say goodbye to boring “Thank you, we received your submission and will contact you shortly!”. Start customizing your Success messages and create form success message you can be proud of!
Redirect users to a different landing page or thank you page
The Redirect action in WordPress is a great way to deepen connections with your site visitors right after they’ve taken action. Doing so with Ninja Forms is a simple process. You can choose to send all your users to the same page once they fill out the form, but if you pair it with conditional logic, it can have big rewards for your business and your brand.
You can create as many redirect actions that send users to different pages. The action on the form is based on the user’s specific entries on their WordPress form.
For example, let’s say you are making a quiz asking users what is their preferred vacation spot. First, you set up a radio list to give them options between the mountains, beach, and city. Depending on the options you defined in your form and which option your users choose, you can send them to the page of their interest.
Once your form is ready, head out to the Emails & Actions tab and create a Redirect action for each option. This is how your Redirect action will look like if your user selects the option Mountains:
In the URL field, you enter the website where you want to redirect your users. You can set up the other Redirect actions with the same logic as shown in the picture above.
Want to learn more about using Redirect action on your forms? Check our article on How to Setup a Thank You Page Redirect for Ninja Forms!
Create conditional actions in WordPress without any coding experience!
Ninja Forms is a powerful form builder that supports WordPress conditional logic to help you work smarter. Using our Conditional Logic add-on, you can easily create conditional actions in WordPress and deliver a personalized experience to your form visitors.
Don’t wait and get your hands on this powerful WordPress logic solution! Unlike our competitors, the Conditional Logic can be purchased individually, or it comes included in all our membership plans.
Give it a try and see for yourself how Conditional Logic does the heavy lifting in your WordPress forms. With a 14-day money-back guarantee, you have nothing to lose!