Conditional logic permits types to alter in actual time primarily based on the person’s solutions, making them extra related and fascinating.
In our expertise, conditional logic will be nice for the whole lot from person surveys to occasion RSVP types. It makes your types extra dynamic and may result in extra type completions and conversions.
On this article, we are going to discover the very best methods to make use of conditional logic in your WordPress types.
What Is Conditional Logic in Varieties, and Why Is It Essential?
Conditional logic is a strong characteristic that permits your type fields to alter primarily based on the person’s responses.
So, as a substitute of presenting all doable fields to each person, you possibly can present or conceal fields primarily based on particular situations. This makes your types cleaner and simpler to navigate as you make sure that customers see solely the related fields.
For instance, let’s say you have got a buyer satisfaction survey type in your WordPress web site.
If prospects charge their satisfaction as ‘Low’ (1-2 stars), further fields for ‘Please describe your difficulty’ and ‘How can we enhance?’ might seem. And if prospects charge their satisfaction as ‘Excessive’ (4-5 stars), then a discipline for ‘What did you want probably the most?’ seems.
The outcome? A extra user-friendly form-filling expertise in your WordPress web site.
Varieties that adapt primarily based on responses maintain customers and encourage them to finish their responses. So, you will get larger submission charges.
With regards to knowledge assortment, conditional logic additionally ensures that you just collect higher-quality knowledge. It’s because customers are extra seemingly to offer correct data when the questions are extremely related to their earlier solutions.
And with extra exact knowledge from conditional fields, follow-up actions like emails or suggestions will be extra precisely focused. This will result in larger conversion charges.
How you can Add Conditional Logic in WordPress Varieties
Within the following sections, we are going to share six conditional logic use instances to enhance your WordPress types. To display the method, we are going to use WPForms and Formidable Varieties.
WPForms is a beginner-friendly type builder with drag-and-drop performance. It has greater than 1900 templates, which may help you create any type in just some minutes. For extra particulars, see our WPForms overview.
In the meantime, Formidable Varieties is a extra superior choice. It’s greatest for creating complicated types, together with calculators and quizzes. You possibly can learn our Formidable Varieties overview for extra particulars.
So, earlier than we begin, you would possibly wish to set up these plugins first. For extra particulars, be happy to take a look at our detailed information on learn how to set up a WordPress plugin.
Word: To make use of conditional logic on WPForms and Formidable Varieties, you’ll want the premium variations of the plugins. However you possibly can at all times begin with WPForms Lite after which improve when wanted.
Right here’s a fast overview of the use instances we are going to cowl on this article:
Prepared? Let’s get began.
Use Case 1: Ask for Further Data in Survey Varieties
Conditional logic may help you create a extra insightful survey type.
For instance, let’s say a person leaves destructive suggestions about your web site’s person expertise. You would possibly wish to study extra about it so you possibly can work to enhance it.
On this first use case, we are going to present you learn how to create survey types with conditional logic utilizing WPForms and its ‘Surveys and Polls Addon.’
Word: You’ll want no less than the WPForms Professional plan to make use of the Surveys and Polls Addon.
To start out making a survey type, you first have to navigate to WPForms » Add New out of your WordPress dashboard.
This can redirect you to WPForms’ ‘Setup’ web page. Right here, you’ll identify your type and choose a template.
After naming your type, it’s time to search out the ‘Survey Kind’ template. You may also use the search field to filter the templates.
When you’ve discovered it, merely hover over the ‘Survey Kind’ template choice and click on ‘Use Template.’
After choosing the template, you would possibly see a pop-up window.
There, you’ll see a message saying that you just’ll want ‘Surveys and Polls Addon’ to make use of the ‘Survey Kind’ template.
Go forward and click on ‘Set up and activate.’
As soon as achieved, you’ll be redirected to the shape builder.
Within the dwell preview, you possibly can see all of the pre-made fields. Now, let’s click on on the ‘How can we enhance?’ discipline.
You’ll wish to head over to the ‘Sensible Logic’ tab within the discipline’s settings. Right here, it is best to see that WPForms has already enabled and arrange conditional logic for you.
The pre-configured conditional logic settings inform the shape to point out the ‘How can we enhance?’ discipline provided that a person submits a 1 or 2-star score for the ‘Your Expertise’ discipline. You may also change these settings by enjoying round with them.
If the whole lot else appears to be like good already, you possibly can click on ‘Save’ so that you don’t lose your progress.
And all achieved! You’ve efficiently created a survey type with conditional logic. Right here’s what it’d seem like:
Use Case 2: Present or Cover Choices in Occasion RSVP Varieties
In an RSVP type, you should use conditional logic to direct customers via completely different paths primarily based on their solutions.
As an example, if a person solutions ‘Sure’ to attending your occasion, you possibly can ask whether or not they wish to carry additional individuals with them. In the event that they reply ‘No,’ then they’ll skip these questions and transfer on to the following related part.
This retains the survey brief and candy for every respondent, which may help enhance your type completion charges.
In WPForms, you possibly can rapidly arrange an RSVP type utilizing the ‘Social gathering Invitation RSVP Kind’ template. Out of your WordPress dashboard, let’s navigate to WPForms » Add New.
You possibly can identify your type primarily based on the occasion you wish to maintain. Right here, we are going to go along with the ‘Social gathering RSVP Kind’ for example.
Then, you possibly can scroll down the display to find the ‘Social gathering Invitation RSVP Kind’ template. When you’ve discovered it, merely hover over the template and click on ‘Use Template.’
Subsequent, you’ll arrive within the ‘Fields’ part.
You at the moment are able to customise the shape in WPForms’ drag-and-drop type builder interface. The left aspect incorporates all of the customization settings, and the correct aspect reveals the shape’s dwell preview.
To start out customizing, you possibly can merely click on on a discipline. Then, WPForms will show the ‘Basic’ tab to edit the sector.
For instance, you possibly can edit the label, add a brand new alternative, and write an outline for the ‘Will you be attending?’ discipline.
Now, it’s time to arrange conditional logic.
Principally, you’ll wish to present the ‘What number of further visitors are you bringing?’ discipline provided that a person selects ‘Sure’ on ‘Will you be attending?’.
To point out or conceal the sector, the very first thing you could do is click on the ‘What number of further visitors are you bringing?’ discipline.
On the left-hand aspect, you possibly can head over to the ‘Sensible Logic’ tab. Then, merely toggle on the ‘Allow Conditional Logic’ choice.
Then, you’ll see dropdown menus for configuring the settings:
- Present or Cover. This dropdown lets you present or conceal the ‘What number of further visitors are you bringing?’ discipline.
- Choose Subject. On this dropdown, you’ll select one from the opposite fields within the type to set the topic of the situation.
- Is and different choices. The default configuration for this dropdown is ‘is.’ However yow will discover completely different choices like ‘will not be,’ ’empty,’ ‘incorporates,’ ‘begins with,’ and extra.
- Choose Alternative. On this final dropdown, you’ll select an choice out of your chosen discipline.
Now, the entire configuration must be ‘Present‘ this discipline if ‘Will you be attending‘ ‘is‘ ‘Sure‘.
As soon as you’re achieved, bear in mind to click on ‘Save’ to avoid wasting your progress. And that’s it—you’ve efficiently used conditional logic to point out or conceal a discipline!
Right here’s what the shape would possibly seem like:
Use Case 3: Show Totally different Fields in Job Software Varieties
If you’re accepting job functions, then you should use conditional logic to show completely different fields primarily based on the place the applicant is making use of for.
For instance, if an applicant selects the ‘Software program Developer’ place, you possibly can show a further discipline similar to ‘Programming Languages Data’.
And in the event that they select ‘Graphic Designer,’ then the ‘Design Software program Abilities’ discipline will seem as a substitute.
Let’s head over to WPForms » Add New out of your WordPress dashboard, and begin making a job utility type with conditional logic.
As soon as contained in the ‘Setup’ web page, the very first thing to do is identify your type. After that, you’ll wish to scroll down to pick a template.
WPForms has quite a lot of job utility type templates.
On this instance, we’re going to use the ‘Job Software Add Kind’. When you’ve situated the template, you’ll wish to hover over it and click on ‘Use Template.’
When you arrive on the WPForms’ builder interface, you can begin customizing the template utilizing the instruments within the left-hand panel.
within the right-hand panel, you have got the dwell preview. You possibly can discover this part to see what fields can be found on the template.
You’ll wish to add a dropdown discipline for obtainable positions and checkbox fields for required expertise. Then, we will set conditional logic primarily based on the candidate’s choice within the obtainable place dropdown.
To create a ‘What place you’re making use of for’ discipline, merely click on ‘Dropdown’ on the left-hand aspect.
Then, you possibly can drag and drop the brand new dropdown discipline above the ‘How did you discover out about this place?’ discipline to maintain the whole lot organized.
Subsequent, let’s click on on the dropdown discipline to edit its particulars. This can open the ‘Subject Choices’ tab. There, you possibly can edit the next:
- Label. This is sort of a identify. As a substitute of ‘Dropdown’, you possibly can change it to ‘What place are you making use of for?’
- Decisions. On this discipline, merely kind within the obtainable positions. For instance, we’re going to use ‘Software program Developer‘ and ‘Graphic Designer’. You possibly can enter as many as you need.
- Description. If needed, you may give a quick description of the sector. Then, it should present just under the dropdown menu.
- ‘Required’ change. You’ll wish to toggle on the ‘Required’ change to verify candidates don’t skip this step.
When you’ve accomplished the small print, right here’s what it’d seem like:
The following step is to arrange checkbox fields to observe up on the candidate’s enter for the place they’re making use of for.
Let’s return to the ‘Fields’ tab and click on ‘Checkboxes’. Then, you’ll wish to do it as soon as once more so you have got two checkbox fields.
After getting added the fields, you possibly can transfer them under ‘What place are you making use of for?’
Now, you possibly can click on on the checkboxes fields to edit their particulars. Within the ‘Subject Choices’ panel, you possibly can edit the next:
- Label. You possibly can change it to ‘Programming Languages Data.’ For the second checkbox, you possibly can label it as ‘Design Software program Abilities’.
- Decisions. The alternatives for the software program developer place may very well be C++, Python, JavaScript, GO, Ruby, and so forth. The graphic designer’s required expertise will be Figma, Photoshop, Adobe Illustrator, Procreate, GIMP, and so forth.
- Description. For this discipline, it’s a good suggestion to let candidates know they’ll select multiple choice.
- Toggles. The checkboxes’ Subject Choices panel has a number of switches. The ‘Use picture selections’ toggle allows you to add pictures to every obtainable choice. And the ‘Use icon selections’ discipline allows you to use icons for every obtainable choice. Then, the ‘Required’ toggle makes positive that candidates fill out the sector.
After customizing the fields’ particulars, right here’s the ultimate look:
Now, you have to be able to set conditional logic.
To start with, you’ll wish to click on on the ‘Programming Languages Data’ discipline. Then, merely navigate to the ‘Sensible Logic’ tab to allow conditional logic.
Now, merely change the ‘Allow Conditional Logic’ toggle on. After that, you possibly can set the sector to point out solely when candidates select the ‘Software program Developer’ place.
Right here’s how the complete configuration must be: ‘Present‘ this discipline if ‘What place are you making use of for?’ ‘is‘ ‘Software program Developer‘.
Subsequent, let’s repeat the steps as soon as once more for candidates making use of for the graphic designer place.
You’ll first wish to click on on the ‘Design Software program Abilities’ discipline. Then, go forward and allow conditional logic from the ‘Sensible Logic’ tab.
When you try this, you possibly can configure the settings.
The complete configuration for this discipline must be: ‘Present‘ this discipline if ‘What place are you making use of for?‘ ‘is‘ ‘Graphic Designer‘.
At this level, you possibly can go forward and click on ‘Save.’
Congratulations! You’ve efficiently created a job utility type with conditional logic. Right here’s what it’d seem like in your web site:
Use Case 4: Customized Thank-You Messages
Conditional logic additionally allows you to ship completely different thank-you messages primarily based on the person’s choice inside your WordPress type. Customized thank-you messages can present beneficial and particular data to the person, which may enhance engagement.
As an example, if a person selects ‘Technical Assist Inquiry’ inside a help type, then the thank-you message can embrace data on the following steps and a hyperlink to help assets.
In the event that they choose ‘Gross sales Inquiry,’ then the message can embrace data in your merchandise and a hyperlink to schedule a demo or session.
in WPForms, you possibly can arrange completely different thank-you messages from the notifications setting space.
However first, let’s create a help type. You are able to do this by navigating to WPForms » Add New.
On the following display, you’ll identify your type. This identify is in your reference solely, so you should use any identify you need.
Then, go forward and scroll down the display to pick a template. You should use the search bar to search out the help type template extra rapidly.
When you’ve discovered a survey type template you wish to use, merely hover over it and click on ‘Use Template.’ In our instance, we’re utilizing the ‘Technical Assist Kind’ template.
This can redirect you to the WPForms’ builder interface. From right here, you’ll wish to head over to Settings » Confirmations.
From right here, let’s click on on ‘Add New Affirmation’.
When you click on on the button, you’ll see a pop-up window.
On this pop-up, kind your new affirmation identify into the textual content field. Right here, we’re naming it ‘Technical Assist Inquiry Affirmation.’
Then, go forward and click on ‘OK’ to get to the settings space.
Within the ‘Affirmation Kind’ discipline, you’ll wish to select ‘Message.’
This can open the textual content field, the place you possibly can write a customized affirmation message when customers submit a technical help inquiry.
Right here’s an instance:
As soon as achieved, it’s time to arrange conditional logic.
Firstly, you possibly can scroll down the part to search out the ‘Allow Conditional Logic’ toggle. That you must change it on.
Then, you’ll be capable of configure the settings via the dropdown menus:
- Use or Don’t Use. This discipline allows you to specify when to make use of the affirmation message. We’ll set this up as ‘Use.’
- Choose Subject. Within the subsequent dropdown menu, go forward and select ‘What can we assist you with at the moment?’ to make use of as the topic.
- Is and different choices. Right here, you’ll see that the default setting is ‘is’. You’ll wish to maintain it like this.
- Choose Alternative. Lastly, let’s choose the ‘Technical Assist Inquiry’ choice, as we wish to use this affirmation message when a person is asking for technical assist.
After ending up the configuration, right here’s what it’d seem like:
As soon as all is completed, merely click on ‘Save’ to maintain your progress. Then, you’ll wish to repeat these steps to arrange a affirmation message for customers submitting gross sales inquiries as a substitute.
Congratulations! You’ve now realized to make use of conditional logic to personalize thank-you messages.
Use Case 5: Set Up A number of Notification Recipients
This use case works greatest if in case you have a type in your touchdown web page or a popup designed to seize leads.
By organising your a number of recipients, you make sure that each lead is directed to the correct group straight away.
Prospects and prospects will admire the lowered response time. This can assist you make your customer support lead seize course of extra environment friendly and efficient.
Utilizing the identical help type as within the earlier methodology, let’s attempt making a notification in your technical help and gross sales group.
First, you’ll have to navigate to WPForms » All Varieties and click on on ‘Edit’ underneath your technical help type.
Then, you can begin organising notifications by navigating to Settings » Notifications.
From right here, go forward and click on on ‘Add New Notification’.
A pop-up window will seem. All you could do is to call the brand new notification. Right here, we are going to identify it ‘New Technical Assist Inquiry’.
Then, merely click on ‘OK’ to maneuver on to the following step.
As soon as inside, the very first thing you wish to do is kind the proper e mail handle in your technical help group into the ‘Ship To Electronic mail Handle’ discipline.
You possibly can delete or maintain the {admin_email} good tag. If you wish to maintain it, then please ensure to make use of a comma when getting into the technical help group’s e mail handle.
Subsequent, you possibly can scroll down the part to search out the ‘Allow Conditional Logic’ toggle.
Go forward and change on that toggle.
Beneath the toggle, it is best to discover dropdown menus for organising conditional logic:
- Ship or Don’t Ship. This dropdown allows you to select to ship or not ship notifications. Let’s select ‘Ship.’
- Choose Subject. On this discipline, you’ll wish to select ‘What can we assist you with at the moment?’. This can set the topic for the next dropdown menus.
- Is and different choices. The default setting is ‘is,’ and we are going to maintain that.
- Choose Choices. On this final discipline, you’ll wish to choose the ‘Technical Assist Inquiry’ choice.
Right here’s how the conditional logic ought to take care of configuration:
As soon as that’s achieved, don’t neglect to click on ‘Save’ so that you don’t lose your progress.
Then, you’ll wish to repeat these steps, from including a brand new notification to clicking ‘Save’ to create notifications for the gross sales group.
And that’s it! You’ve realized to make use of conditional logic to set acceptable notification recipients.
Use Case 6: Create a Chained Quiz
One of the enjoyable methods to make use of conditional logic is to create quizzes in WordPress with chained solutions and responses.
A chained quiz allows you to current inquiries to customers primarily based on their earlier solutions. So, as a result of every person’s path via the quiz will be completely different, this can be a extra personalised and interactive expertise.
For instance, a well being and wellness web site might use a chained quiz to suggest personalised health plans.
The primary query would possibly ask in regards to the person’s major health aim, similar to weight reduction, muscle acquire, or basic well being.
Relying on the person’s reply, the following query might ask about their present train habits or dietary preferences, which results in extra particular suggestions.
We can be utilizing Formidable Varieties for this remaining use case. It is likely one of the greatest WordPress conditional logic plugins for creating quizzes. Plus, it additionally lets you create a scoring system together with the quiz.
To get began, let’s set up the free Formidable Forms plugin. For detailed directions, see our step-by-step information on learn how to set up a WordPress plugin.
Upon activation, you’ll wish to go to Formidable Varieties » World Settings to improve to the professional model. Then, merely click on the ‘Connect with account’ button.
This can redirect you to a brand new web page.
On this web page, you possibly can see the e-mail handle that you just used to enroll in Formidable Varieties. If the whole lot is so as, go forward and click on ‘Join and Set up Formidable Varieties Professional.’
The button will then flip to ‘Please wait…’ and all it’s important to do is watch for the method to finish.
As soon as achieved, let’s navigate to Formidable Varieties » Varieties » + Add New.
The following step is selecting a template.
Within the ‘Kind Templates’ panel, we will see that Formidable Varieties gives greater than 300 templates. To discover a quiz template extra rapidly, you possibly can kind ‘quiz’ into the search bar.
Then, merely hover over the ‘Quiz’ template and click on ‘Use Template.’ You may also preview the template first by clicking the ‘View Demo’ button.
Clicking the ‘Use Template’ button will redirect you to the Formidable Varieties builder.
You possibly can entry all of the customization instruments on the left-hand aspect. The fitting-hand aspect is the place you have got the shape’s dwell preview.
We will see that there are pre-set questions on this type template.
So as to add your questions, you possibly can click on on every discipline. Then, merely regulate the written copy from the customization panel on the left-hand aspect.
For this information, we’re going to create a well being and wellness chained quiz for example.
Right here, we’re altering the primary query from ‘Which one in all these will not be just like the others?’ to ‘What’s your major health aim?’
Then, let’s tick the ‘Required’ checkbox to verify customers don’t skip this query.
If you’d like, then you possibly can change the radio button fashion. We’re sticking with ‘Easy’, however you should use pictures or set up the ‘Button’ add-on to get extra entry to different button types.
Now, you’ll wish to scroll down the customization panel and alter the choices for this query.
We’re adjusting the choices to ‘Weight reduction,’ ‘Muscle acquire,’ and ‘Basic well being.’ By default, the shape template has 4 choices. So, we are going to wish to make it possible for we modify that, too.
To take away an choice, merely click on the ‘-‘ button to the correct of the choice discipline.
When you click on the ‘-‘ button, you’ll see within the dwell preview that Formidable Varieties has eliminated the choice.
Subsequent, you’ll wish to create associated questions for every choice. It’s because we’re going to arrange conditional logic for when customers select both of the three choices.
You possibly can repeat the method so as to add your questions. And right here’s what our further query for the ‘Weight reduction’ choice appears to be like like:
For the ‘Muscle acquire’ choice, you would possibly wish to ask in regards to the person’s dietary preferences.
Since there are dozens of choices for dietary preferences, you possibly can add a few of the hottest ones and add an ‘Different’ discipline the place customers can kind of their preferences.
All it’s important to do is solely click on ‘Add different’ on the finish of the choice part.
When you’ve achieved that, an ‘Different’ radio button with a easy textual content field can be added. Should you haven’t already achieved so, be happy to click on the ‘-‘ button for the ‘D’ choice.
And right here’s what that may seem like:
If there are extra fields than wanted, you possibly can delete the remainder.
To do that, you’ll first have to click on on the sector. Then, go forward and click on the three-dot button within the high proper nook.
As soon as the menu expands, merely click on ‘Delete.’
Now, it’s time to arrange conditional logic.
First, you’ll wish to head over the second query about how typically customers are prepared to train in per week. Go forward and click on on the sector.
After that, let’s scroll down the customization panel and broaden the ‘Conditional Logic’ menu merchandise.
Within the ‘Conditional Logic’ part, you possibly can configure a number of drop-down menus.
You’ll want to present the ‘What number of days per week will you train?’ discipline if customers select the ‘Weight reduction’ choice. Listed below are the settings you will want:
- Present or conceal this discipline. That is the place you possibly can present or conceal the ‘What number of days per week will you train?’ discipline. You possibly can maintain it as ‘Present this discipline.’
- All or any. On this dropdown, you possibly can configure if any or the entire situations must be met. Let’s maintain it as ‘any.’
- Choose discipline. Right here, you’ll select one from the opposite fields within the type to set the topic of the situation. Let’s select ‘What’s your major aim?’
- Equals and different choices. By default, the configuration is ‘equals.’ You possibly can maintain it as is.
- Choose choice. On this final discipline, you’ll wish to choose ‘Weight reduction,’ as you need this query to seem for customers who select the choice.
Should you solely wish to set one situation, then you possibly can click on the ‘-‘ button or depart it as is.
And right here’s what the ultimate configuration would possibly seem like:
Subsequent, let’s set conditional logic for the ‘Do you like dwelling or health club train?’ discipline. For this information, we are going to attempt exhibiting the query if customers choose the opposite choices from the ‘What number of days per week will you train?’ discipline.
Go forward and click on on the ‘Do you like dwelling or health club train?’ discipline to entry the conditional logic settings.
When you’re within the conditional logic settings, you’ll wish to set two situations:
- ‘What number of days per week will you train?’ ‘equals’ ‘1-2 instances per week’
- ‘What number of days per week will you train?’ ‘equals’ ‘3-4 instances per week’
These settings allow you to maintain the ‘Do you like dwelling or health club train?’ discipline hidden for customers who choose the ‘As soon as per week’ choice. For these customers, we will suggest the house train immediately.
You possibly can repeat these processes for all of your different fields. As soon as that’s achieved, go forward and click on the ‘Replace’ button.
Now you can embed the quiz type into your WordPress web site. Merely click on the ‘Embed’ button on the high of the shape builder.
You’ll now see a popup with completely different embed choices.
For instance, you possibly can choose an current web page, create a brand new web page, or insert the shape manually with a shortcode.
Now, we’re going to present you what the chained quiz type would possibly seem like in your web site.
Right here’s a preview of when customers select ‘Weight reduction’ for his or her health aim and ‘As soon as per week’ as their train plan:
From the screenshot above, we will see that you just’ve efficiently hidden the ‘Do you like dwelling or health club train?’ discipline.
And the next is what it’d seem like if customers choose ‘Weight reduction’ and ‘3-4 instances per week.’
As we will see within the screenshot, the ‘Do you like dwelling or health club train’ choice seems for customers who select ‘3-4 instances per week.’
Now, let’s see how the fields change when customers select the ‘Muscle acquire’ choice.
Congratulations! You could have now realized learn how to create a conditional logic chained quiz.
Redirect Customers to the Customized Health Plan Web page After Kind Submission
Now, customers will anticipate to get the personalised health plan after they submit the shape. The simplest means to do that is to redirect customers to the respective personalised health plan web page.
First, let’s create the health plan pages. You possibly can go to Pages » Add New Web page out of your WordPress dashboard.
Within the content material editor, you can begin creating the personalised health plan for all of the doable mixtures in your conditional logic type. For this tutorial, we’ll present you learn how to redirect customers who select:
- ‘Weight reduction’ for the ‘What’s your major health aim?’ query.
- ‘3-4 instances per week’ for the ‘What number of days per week will you train?’ query.
- ‘Gymnasium’ for the ‘Do you like dwelling or health club train?’ query.
Right here’s what our draft appears to be like like:
When you’re achieved, you possibly can hit the ‘Publish’ button and as soon as once more on the affirmation panel.
Then, you possibly can click on the ‘View Web page’ hyperlink when publishing is completed. Do notice that you just’ll wish to maintain this in a brand new tab since you’ll want the web page’s URL later.
Now, let’s return to your Formidable Varieties health plan type.
You possibly can navigate to Formidable Varieties » Varieties. Then, you’ll wish to hover over the health plan type you simply created and click on ‘Edit.’
As soon as within the type builder, you possibly can change to the ‘Settings’ tab.
Then, let’s navigate to Actions & Notifications » Affirmation.
Within the ‘Affirmation’ part, you’ll wish to change the affirmation kind to ‘Redirect to URL.’
This can open a ‘Redirect URL’ textual content discipline, so go forward and enter the web page’s hyperlink to the health plan you simply created.
There’s additionally an motion setting to open the web page in a brand new tab. You possibly can toggle the change to allow the setting, however we’ll maintain it inactive.
The following step is so as to add conditional logic for this redirect.
To do that, you’ll have to click on the ‘Conditional Logic’ hyperlink and arrange the foundations. So as to add extra situations, you possibly can click on the ‘+’ button to the correct of the dropdown fields,
Now you can click on ‘Replace’ to avoid wasting your modifications.
Now, you would possibly wish to make a take a look at submission to see if the conditional logic works. On our take a look at web site, we tried to fill out the shape utilizing the foundations we set for this redirect.
And there now we have it!
We’re efficiently redirected to the respective web page:
We hope this text has confirmed you some conditional logic use instances for WordPress types. Subsequent, you would possibly wish to have a look at our tricks to create extra interactive types and learn how to customise your types in WordPress.
Should you appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You may also discover us on Twitter and Facebook.
Leave a comment