WordPress

6 Ways to Use Conditional Logic in WordPress Forms (Top Use Cases)

Conditional logic permits varieties to alter in actual time primarily based on the person’s solutions, making them extra related and fascinating.

In our expertise, conditional logic could be nice for all the pieces from person surveys to occasion RSVP varieties. It makes your varieties extra dynamic and may result in extra kind completions and conversions.

On this article, we are going to discover one of the best methods to make use of conditional logic in your WordPress varieties.

Ways to use conditional logic in-post image

What Is Conditional Logic in Kinds, and Why Is It Essential?

Conditional logic is a robust function that allows your kind fields to alter primarily based on the person’s responses.

So, as an alternative of presenting all potential fields to each person, you’ll be able to present or conceal fields primarily based on particular circumstances. This makes your varieties cleaner and simpler to navigate as you make sure that customers see solely the related fields.

For instance, let’s say you might have a customer satisfaction survey kind in your WordPress web site.

If clients price their satisfaction as ‘Low’ (1-2 stars), further fields for ‘Please describe your subject’ and ‘How can we enhance?’ might seem. And if clients price their satisfaction as ‘Excessive’ (4-5 stars), then a area for ‘What did you want essentially the most?’ seems.

The outcome? A extra user-friendly form-filling expertise in your WordPress website.

Kinds that adapt primarily based on responses hold customers and encourage them to finish their responses. So, you may get greater submission charges.

In relation to knowledge assortment, conditional logic additionally ensures that you just collect higher-quality knowledge. It’s because customers are extra possible 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 could be extra precisely focused. This could result in greater conversion charges.

Learn how to Add Conditional Logic in WordPress Kinds

Within the following sections, we are going to share six conditional logic use instances to enhance your WordPress varieties. To show the method, we are going to use WPForms and Formidable Forms.

WPForms is a beginner-friendly kind builder with drag-and-drop performance. It has greater than 1900 templates, which will help you create any kind in just some minutes. For extra particulars, see our WPForms review.

In the meantime, Formidable Kinds is a extra superior choice. It’s finest for creating complicated varieties, together with calculators and quizzes. You may learn our Formidable Forms review for extra particulars.

So, earlier than we begin, you may need to set up these plugins first. For extra particulars, be at liberty to take a look at our detailed information on how to install a WordPress plugin.

Observe: To make use of conditional logic on WPForms and Formidable Kinds, you’ll want the premium variations of the plugins. However you’ll be able to all the time 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 Kinds

Conditional logic will help you create a extra insightful survey kind.

For instance, let’s say a person leaves adverse suggestions about your web site’s person expertise. You may need to be taught extra about it so you’ll be able to work to enhance it.

On this first use case, we are going to present you tips on how to create survey varieties with conditional logic utilizing WPForms and its ‘Surveys and Polls Addon.’

Observe: You’ll want at the very least the WPForms Professional plan to make use of the Surveys and Polls Addon.

To start out creating a survey form, you first have to navigate to WPForms » Add New out of your WordPress dashboard.

The Add New button under WPForms in the WordPress admin area

This can redirect you to WPForms’ ‘Setup’ web page. Right here, you’ll title your kind and choose a template.

After naming your kind, it’s time to seek out the ‘Survey Type’ template. You too can use the search field to filter the templates.

When you’ve discovered it, merely hover over the ‘Survey Type’ template choice and click on ‘Use Template.’

WPForms' Survey Form template

After deciding on the template, you may 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 Type’ template.

Go forward and click on ‘Set up and activate.’

Install and activate survey addons

As soon as finished, you can be redirected to the shape builder.

Within the stay preview, you’ll be able to see all of the pre-made fields. Now, let’s click on on the ‘How can we enhance?’ area.

You’ll need to head over to the ‘Sensible Logic’ tab within the area’s settings. Right here, you must see that WPForms has already enabled and arrange conditional logic for you.

How can we improve? conditional logic

The pre-configured conditional logic settings inform the shape to indicate the ‘How can we enhance?’ area provided that a person submits a 1 or 2-star ranking for the ‘Your Expertise’ area. You too can change these settings by taking part in round with them.

If all the pieces else appears good already, you’ll be able to click on ‘Save’ so that you don’t lose your progress.

And all finished! You’ve efficiently created a survey kind with conditional logic. Right here’s what it’d seem like:

Survey form on a live website

Use Case 2: Present or Disguise Choices in Occasion RSVP Kinds

In an RSVP kind, you need to use conditional logic to direct customers by means of totally different paths primarily based on their solutions.

For example, if a person solutions ‘Sure’ to attending your occasion, you’ll be able to ask whether or not they need to convey 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 will help enhance your kind completion charges.

In WPForms, you’ll be able to rapidly set up an RSVP form utilizing the ‘Occasion Invitation RSVP Type’ template. Out of your WordPress dashboard, let’s navigate to WPForms » Add New.

You may title your kind primarily based on the occasion you need to maintain. Right here, we are going to go together with the ‘Occasion RSVP Type’ for example.

Then, you’ll be able to scroll down the display screen to find the ‘Occasion Invitation RSVP Type’ template. When you’ve discovered it, merely hover over the template and click on ‘Use Template.’

wpforms-partyinvitationrsvptemplate

Subsequent, you’ll arrive within the ‘Fields’ part.

You at the moment are able to customise the shape in WPForms’ drag-and-drop kind builder interface. The left facet accommodates all of the customization settings, and the fitting facet exhibits the shape’s stay preview.

WPForms' form builder for editing Party RSVP Form

To start out customizing, you’ll be able to merely click on on a area. Then, WPForms will show the ‘Basic’ tab to edit the sector.

For instance, you’ll be able to edit the label, add a brand new selection, and write an outline for the ‘Will you be attending?’ area.

The Will you be attending? field

Now, it’s time to arrange conditional logic.

Mainly, you’ll need to present the ‘What number of further friends are you bringing?’ area provided that a person selects ‘Sure’ on ‘Will you be attending?’.

To indicate or conceal the sector, the very first thing you might want to do is click on the ‘What number of further friends are you bringing?’ area.

On the left-hand facet, you’ll be able to head over to the ‘Sensible Logic’ tab. Then, merely toggle on the ‘Allow Conditional Logic’ choice.

Enable conditional logic for How many guests are you bringing?

Then, you’ll see dropdown menus for configuring the settings:

  • Present or Disguise. This dropdown means that you can present or conceal the ‘What number of further friends are you bringing?’ area.
  • Choose Area. On this dropdown, you’ll select one from the opposite fields within the kind to set the topic of the situation.
  • Is and different choices. The default configuration for this dropdown is ‘is.’ However yow will discover totally different choices like ‘shouldn’t be,’ ’empty,’ ‘accommodates,’ ‘begins with,’ and extra.
  • Choose Selection. On this final dropdown, you’ll select an choice out of your chosen area.

Now, the entire configuration must be ‘Present‘ this area if ‘Will you be attending‘ ‘is‘ ‘Sure‘.

As soon as you might be finished, bear in mind to click on ‘Save’ to avoid wasting your progress. And that’s it—you’ve efficiently used conditional logic to indicate or conceal a area!

Right here’s what the shape may seem like:

The Party RSVP Form on the live website

Use Case 3: Show Completely different Fields in Job Utility Kinds

In case you are accepting job purposes, then you need to use conditional logic to show totally 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’ll be able to show an extra area reminiscent of ‘Programming Languages Information’.

And in the event that they select ‘Graphic Designer,’ then the ‘Design Software program Abilities’ area will seem as an alternative.

Let’s head over to WPForms » Add New out of your WordPress dashboard, and begin creating a job application kind with conditional logic.

As soon as contained in the ‘Setup’ web page, the very first thing to do is title your kind. After that, you’ll need to scroll down to pick out a template.

WPForms has plenty of job software kind templates.

On this instance, we’re going to use the ‘Job Utility Add Type’. When you’ve situated the template, you’ll need to hover over it and click on ‘Use Template.’

WPForms' Job Application Upload Form 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 might have the stay preview. You may discover this part to see what fields can be found on the template.

WPForms' builder interface for the Job Application Upload Form template

You’ll need to add a dropdown area 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 might be making use of for’ area, merely click on ‘Dropdown’ on the left-hand facet.

Then, you’ll be able to drag and drop the brand new dropdown area above the ‘How did you discover out about this place?’ area to maintain all the pieces organized.

A new dropdown field for the job application form

Subsequent, let’s click on on the dropdown area to edit its particulars. This can open the ‘Area Choices’ tab. There, you’ll be able to edit the next:

  • Label. This is sort of a title. As an alternative of ‘Dropdown’, you’ll be able to change it to ‘What place are you making use of for?’
  • Decisions. On this area, merely sort within the obtainable positions. For instance, we’re going to use ‘Software Developer‘ and ‘Graphic Designer’. You may enter as many as you need.
  • Description. If crucial, you can provide a quick description of the sector. Then, it’s going to present slightly below the dropdown menu.
  • ‘Required’ change. You’ll need 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:

Customized dropdown field

The subsequent 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 need to do it as soon as once more so you might have two checkbox fields.

After you have added the fields, you’ll be able to transfer them beneath ‘What place are you making use of for?’

Checkboxes fields below the position applying for field

Now, you’ll be able to click on on the checkboxes fields to edit their particulars. Within the ‘Area Choices’ panel, you’ll be able to edit the next:

  • Label. You may change it to ‘Programming Languages Information.’ For the second checkbox, you’ll be able to label it as ‘Design Software program Abilities’.
  • Decisions. The alternatives for the software program developer place might be C++, Python, JavaScript, GO, Ruby, and so forth. The graphic designer’s required expertise could be Figma, Photoshop, Adobe Illustrator, Procreate, GIMP, and many others.
  • Description. For this area, it’s a good suggestion to let candidates know they’ll select multiple choice.
  • Toggles. The checkboxes’ Area Choices panel has a number of switches. The ‘Use picture selections’ toggle enables you to add photographs to every obtainable choice. And the ‘Use icon selections’ area enables you to use icons for every obtainable choice. Then, the ‘Required’ toggle makes certain that candidates fill out the sector.

After customizing the fields’ particulars, right here’s the ultimate look:

Customized checkboxes fields

Now, try to be able to set conditional logic.

To start with, you’ll need to click on on the ‘Programming Languages Information’ area. Then, merely navigate to the ‘Sensible Logic’ tab to allow conditional logic.

Now, merely change the ‘Allow Conditional Logic’ toggle on. After that, you’ll be able to set the sector to indicate solely when candidates select the ‘Software program Developer’ place.

Right here’s how the complete configuration must be: ‘Present‘ this area if ‘What place are you making use of for?’ ‘is‘ ‘Software program Developer‘.

Conditional logic for candidates applying for the software developer position

Subsequent, let’s repeat the steps as soon as once more for candidates making use of for the graphic designer place.

You’ll first need to click on on the ‘Design Software program Abilities’ area. Then, go forward and allow conditional logic from the ‘Sensible Logic’ tab.

When you try this, you’ll be able to configure the settings.

The complete configuration for this area must be: ‘Present‘ this area if ‘What place are you making use of for?‘ ‘is‘ ‘Graphic Designer‘.

Design Software Skills conditional logic configured

At this level, you’ll be able to go forward and click on ‘Save.’

Congratulations! You’ve efficiently created a job software kind with conditional logic. Right here’s what it’d seem like in your web site:

Job Application Form with conditional logic on a live website

Use Case 4: Personalised Thank-You Messages

Conditional logic additionally enables you to send different thank-you messages primarily based on the person’s choice inside your WordPress kind. Personalised thank-you messages can present priceless and particular data to the person, which might enhance engagement.

For example, if a person selects ‘Technical Assist Inquiry’ inside a assist kind, then the thank-you message can embody data on the following steps and a hyperlink to assist assets.

In the event that they choose ‘Gross sales Inquiry,’ then the message can embody data in your merchandise and a hyperlink to schedule a demo or session.

in WPForms, you’ll be able to arrange totally different thank-you messages from the notifications setting space.

However first, let’s create a assist kind. You are able to do this by navigating to WPForms » Add New.

On the following display screen, you’ll title your kind. This title is in your reference solely, so you need to use any title you need.

Then, go forward and scroll down the display screen to pick out a template. You should use the search bar to seek out the assist kind template extra rapidly.

When you’ve discovered a survey kind template you need to use, merely hover over it and click on ‘Use Template.’ In our instance, we’re utilizing the ‘Technical Assist Type’ template.

Support form template

This can redirect you to the WPForms’ builder interface. From right here, you’ll need to head over to Settings » Confirmations.

From right here, let’s click on on ‘Add New Affirmation’.

WPForms' Add New Confirmation button

When you click on on the button, you’ll see a pop-up window.

On this pop-up, sort your new affirmation title 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.

Naming the technical support inquiry confirmation

Within the ‘Affirmation Sort’ area, you’ll need to select ‘Message.’

This can open the textual content field, the place you’ll be able to write a custom confirmation message when customers submit a technical assist inquiry.

Right here’s an instance:

The custom confirmation message for technical support inquiries

As soon as finished, it’s time to arrange conditional logic.

Firstly, you’ll be able to scroll down the part to seek out the ‘Allow Conditional Logic’ toggle. You might want to change it on.

Enabling conditional logic for technical support inquiry confirmation message

Then, you’ll be capable to configure the settings by means of the dropdown menus:

  • Use or Don’t Use. This area enables you to specify when to make use of the affirmation message. We are going to set this up as ‘Use.’
  • Choose Area. 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 need to hold it like this.
  • Choose Selection. Lastly, let’s choose the ‘Technical Assist Inquiry’ choice, as we need 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:

Conditional logic for the technical support inquiry's confirmation message

As soon as all is finished, merely click on ‘Save’ to maintain your progress. Then, you’ll need to repeat these steps to arrange a affirmation message for customers submitting gross sales inquiries as an alternative.

Congratulations! You’ve now discovered 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 finest when you have a kind in your landing page or a popup designed to seize leads.

By setting up your multiple recipients, you make sure that each lead is directed to the fitting crew immediately.

Prospects and prospects will recognize the decreased response time. This can assist you make your customer service lead seize course of extra environment friendly and efficient.

Utilizing the identical assist kind as within the earlier methodology, let’s attempt making a notification in your technical assist and gross sales crew.

First, you’ll have to navigate to WPForms » All Kinds and click on on ‘Edit’ below your technical assist kind.

The Edit button for a support form example

Then, you can begin organising notifications by navigating to Settings » Notifications.

From right here, go forward and click on on ‘Add New Notification’.

The Add New Notifications on WPForms' notifications settings area

A pop-up window will seem. All you might want to do is to call the brand new notification. Right here, we are going to title it ‘New Technical Assist Inquiry’.

Then, merely click on ‘OK’ to maneuver on to the following step.

The pop-up window for naming a new notification

As soon as inside, the very first thing you need to do is sort the right email address in your technical assist crew into the ‘Ship To E mail Deal with’ area.

You may delete or hold the {admin_email} good tag. If you wish to hold it, then please be certain that to make use of a comma when coming into the technical assist crew’s e-mail tackle.

Adding the technical support email address to the Send to Email Address field

Subsequent, you’ll be able to scroll down the part to seek out the ‘Allow Conditional Logic’ toggle.

Go forward and change on that toggle.

The enable conditional logic toggle on WPForms' notifications setting area

Under the toggle, you must discover dropdown menus for organising conditional logic:

  • Ship or Don’t Ship. This dropdown enables you to select to ship or not ship notifications. Let’s select ‘Ship.’
  • Choose Area. On this area, you’ll need 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 hold that.
  • Choose Choices. On this final area, you’ll need to choose the ‘Technical Assist Inquiry’ choice.

Right here’s how the conditional logic ought to take care of configuration:

Setting up conditional logic for technical support notifications

As soon as that’s finished, don’t overlook to click on ‘Save’ so that you don’t lose your progress.

Then, you’ll need to repeat these steps, from including a brand new notification to clicking ‘Save’ to create notifications for the gross sales crew.

And that’s it! You’ve discovered to make use of conditional logic to set acceptable notification recipients.

Use Case 6: Create a Chained Quiz

Some of the enjoyable methods to make use of conditional logic is to create quizzes in WordPress with chained solutions and responses.

A chained quiz enables you to current inquiries to customers primarily based on their earlier solutions. So, as a result of every person’s path by means of the quiz could be totally different, this can be a extra customized and interactive expertise.

For instance, a health and wellness website might use a chained quiz to suggest customized health plans.

The primary query may ask concerning the person’s main health objective, reminiscent of weight reduction, muscle achieve, or normal well being.

Relying on the person’s reply, the following query might ask about their present train habits or dietary preferences, which ends up in extra particular suggestions.

We can be utilizing Formidable Kinds for this ultimate use case. It is likely one of the best WordPress conditional logic plugins for creating quizzes. Plus, it additionally means that you can 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 how to install a WordPress plugin.

Upon activation, you’ll need to go to Formidable Kinds » International Settings to improve to the professional model. Then, merely click on the ‘Hook up with account’ button.

Connect an account button on Formidable Forms' general settings

This can redirect you to a brand new web page.

On this web page, you’ll be able to see the email address that you just used to join Formidable Kinds. If all the pieces is so as, go forward and click on ‘Join and Set up Formidable Kinds Professional.’

Connecting a Formidable Forms pro account

The button will then flip to ‘Please wait…’ and all you must do is anticipate the method to finish.

As soon as finished, let’s navigate to Formidable Kinds » Kinds » + Add New.

Formidable Forms' add new button

The subsequent step is selecting a template.

Within the ‘Type Templates’ panel, we will see that Formidable Kinds presents greater than 300 templates. To discover a quiz template extra rapidly, you’ll be able to sort ‘quiz’ into the search bar.

Then, merely hover over the ‘Quiz’ template and click on ‘Use Template.’ You too can preview the template first by clicking the ‘View Demo’ button.

Formidable Forms' use template button

Clicking the ‘Use Template’ button will redirect you to the Formidable Kinds builder.

You may entry all of the customization instruments on the left-hand facet. The fitting-hand facet is the place you might have the shape’s stay preview.

Formidable Forms form builder interface

We will see that there are pre-set questions on this kind template.

So as to add your questions, you’ll be able to click on on every area. Then, merely regulate the written copy from the customization panel on the left-hand facet.

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 considered one of these shouldn’t be just like the others?’ to ‘What’s your main health objective?’

Then, let’s tick the ‘Required’ checkbox to verify customers don’t skip this query.

Formidable Form field label edited and required checkbox ticked

If you would like, then you’ll be able to change the radio button style. We’re sticking with ‘Easy’, however you need to use photographs or set up the ‘Button’ add-on to get extra entry to different button types.

Now, you’ll need to scroll down the customization panel and alter the choices for this query.

We’re adjusting the choices to ‘Weight reduction,’ ‘Muscle achieve,’ and ‘Basic well being.’ By default, the shape template has 4 choices. So, we are going to need to be sure that we modify that, too.

To take away an choice, merely click on the ‘-‘ button to the fitting of the choice area.

The button to remove an option field in Formidable Forms builder

When you click on the ‘-‘ button, you’ll see within the stay preview that Formidable Kinds has eliminated the choice.

Subsequent, you’ll need 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 may repeat the method so as to add your questions. And right here’s what our further query for the ‘Weight reduction’ choice appears like:

Questions to set up conditional logic

For the ‘Muscle achieve’ choice, you may need to ask concerning the person’s dietary preferences.

Since there are dozens of choices for dietary preferences, you’ll be able to add a number of the hottest ones and add an ‘Different’ area the place customers can sort of their preferences.

All you must do is just click on ‘Add different’ on the finish of the choice part.

Add Other button in Formidable Forms

When you’ve finished that, an ‘Different’ radio button with a easy textual content field can be added. Should you haven’t already finished so, be at liberty to click on the ‘-‘ button for the ‘D’ choice.

And right here’s what which may seem like:

Field with an Add Other option

If there are extra fields than wanted, you’ll be able to delete the remaining.

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.’

Formidable Forms' delete  field button

Now, it’s time to arrange conditional logic.

First, you’ll need to head over the second query about how typically customers are keen to train in every week. Go forward and click on on the sector.

After that, let’s scroll down the customization panel and develop the ‘Conditional Logic’ menu merchandise.

The conditional logic menu item in Formidable Forms builder

Within the ‘Conditional Logic’ part, you’ll be able to configure a number of drop-down menus.

You’ll want to present the ‘What number of days every week will you train?’ area if customers select the ‘Weight reduction’ choice. Listed here are the settings you will have:

  • Present or conceal this area. That is the place you’ll be able to present or conceal the ‘What number of days every week will you train?’ area. You may hold it as ‘Present this area.’
  • All or any. On this dropdown, you’ll be able to configure if any or all the circumstances must be met. Let’s hold it as ‘any.’
  • Choose area. Right here, you’ll select one from the opposite fields within the kind to set the topic of the situation. Let’s select ‘What’s your main objective?’
  • Equals and different choices. By default, the configuration is ‘equals.’ You may hold it as is.
  • Choose choice. On this final area, you’ll need to choose ‘Weight reduction,’ as you need this query to look for customers who select the choice.

Should you solely need to set one situation, then you’ll be able to click on the ‘-‘ button or depart it as is.

And right here’s what the ultimate configuration may seem like:

Conditional logic configured in Formidable Forms

Subsequent, let’s set conditional logic for the ‘Do you like dwelling or fitness center train?’ area. For this information, we are going to attempt displaying the query if customers choose the opposite choices from the ‘What number of days every week will you train?’ area.

Go forward and click on on the ‘Do you like dwelling or fitness center train?’ area to entry the conditional logic settings.

When you’re within the conditional logic settings, you’ll need to set two circumstances:

  • ‘What number of days every week will you train?’ ‘equals’ ‘1-2 occasions every week’
  • ‘What number of days every week will you train?’ ‘equals’ ‘3-4 occasions every week’
Conditional logic for the exercise field

These settings allow you to maintain the ‘Do you like dwelling or fitness center train?’ area hidden for customers who choose the ‘As soon as every week’ choice. For these customers, we will suggest the house train immediately.

You may repeat these processes for all of your different fields. As soon as that’s finished, go forward and click on the ‘Replace’ button.

Now you can embed the quiz kind into your WordPress web site. Merely click on the ‘Embed’ button on the high of the shape builder.

Formidable Forms' embed button

You’ll now see a popup with totally different embed choices.

For instance, you’ll be able to choose an present web page, create a brand new web page, or insert the shape manually with a shortcode.

Select existing page option for embedding a Formidable Forms' contact form

Now, we’re going to present you what the chained quiz kind may seem like in your web site.

Right here’s a preview of when customers select ‘Weight reduction’ for his or her health objective and ‘As soon as every week’ as their train plan:

Chained quiz when users choose weight loss and once a week

From the screenshot above, we will see that you just’ve efficiently hidden the ‘Do you like dwelling or fitness center train?’ area.

And the next is what it’d seem like if customers choose ‘Weight reduction’ and ‘3-4 occasions every week.’

Chained quiz when users choose weight loss and once a week

As we will see within the screenshot, the ‘Do you like dwelling or fitness center train’ choice seems for customers who select ‘3-4 occasions every week.’

Now, let’s see how the fields change when customers select the ‘Muscle achieve’ choice.

Chained quiz when users choose muscle gain and other

Congratulations! You’ve now discovered tips on how to create a conditional logic chained quiz.

Redirect Customers to the Personalised Health Plan Web page After Type Submission

Now, customers will count on to get the customized health plan after they submit the shape. The best approach to do that is to redirect customers to the respective customized health plan web page.

First, let’s create the health plan pages. You may go to Pages » Add New Web page out of your WordPress dashboard.

Clicking Add New Page in WordPress admin area

Within the content material editor, you can begin creating the customized health plan for all of the potential combos in your conditional logic kind. For this tutorial, we’ll present you tips on how to redirect customers who select:

  • ‘Weight reduction’ for the ‘What’s your main health objective?’ query.
  • ‘3-4 occasions every week’ for the ‘What number of days every week will you train?’ query.
  • ‘Fitness center’ for the ‘Do you like dwelling or fitness center train?’ query.

Right here’s what our draft appears like:

Drafting a fitness plan

When you’re finished, you’ll be able to hit the ‘Publish’ button and as soon as once more on the affirmation panel.

Then, you’ll be able to click on the ‘View Web page’ hyperlink when publishing is finished. Do observe that you just’ll need to hold this in a brand new tab since you’ll want the web page’s URL later.

Publishing a fitness plan page

Now, let’s return to your Formidable Kinds health plan kind.

You may navigate to Formidable Kinds » Kinds. Then, you’ll need to hover over the health plan kind you simply created and click on ‘Edit.’

Edit button in Formidable Forms

As soon as within the kind builder, you’ll be able to change to the ‘Settings’ tab.

Then, let’s navigate to Actions & Notifications » Affirmation.

Confirmation section in Formidable Forms' settings

Within the ‘Affirmation’ part, you’ll need to change the affirmation sort to ‘Redirect to URL.’

This can open a ‘Redirect URL’ textual content area, 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 may toggle the change to allow the setting, however we’ll hold it inactive.

Adding URL to redirect users

The subsequent 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 circumstances, you’ll be able to click on the ‘+’ button to the fitting of the dropdown fields,

Setting redirect conditional logic

Now you can click on ‘Replace’ to avoid wasting your modifications.

Now, you may need 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.

Making a test submission

And there we now have it!

We’re efficiently redirected to the respective web page:

Redirect users to the recommended fitness plan page

We hope this text has confirmed you some conditional logic use instances for WordPress varieties. Subsequent, you may need to take a look at our tips to create more interactive forms and how to customize your forms in WordPress.

Should you favored this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You too can discover us on Twitter and Facebook.



Leave a Reply

Your email address will not be published. Required fields are marked *