How to Enable Conditional Logic for User Ratings

How to Easily Enable Conditional Logic for User Ratings in WordPress

Do you want to know how to enable conditional logic for user ratings on your WordPress forms? Being able to show and hide certain form fields based on your site visitors’ ratings is a great way to find out more about why people feel the way they do.

In this article, we’ll show you how to enable conditional logic for user ratings using WPForms.

What is Conditional Logic and Why Use It?

Conditional logic is a form builder feature in WPForms that lets you show or hide form fields based on user selections.

There are many reasons why you might want to use conditional logic on your WordPress forms:

WPForms is the best WordPress Form Builder plugin. Get it for free!
  • Streamline the Process. Make your forms less confusing and easier to fill out, while still gathering the information you need.
  • Shorten Forms. When it comes to designing your forms, shorter is better. Using conditional logic to hide fields that don’t matter is a great way to fight form fatigue and boost form conversions.
  • Customize the Experience. Use conditional logic on your WordPress forms to give each site visitor an engaging and more personalized experience.

Using WPForms, the best contact plugin on the market to date, and enabling smart conditional logic, is a great way to create dynamic and powerful forms for your website.

In fact, one of the best kinds of WordPress forms you can place on your WordPress site that comes with smart conditional logic is a survey form.

Using the Surveys and Polls addon, you can turn the following form fields into smart form fields:

However today, we’re going to look at how to enable conditional logic for the user ratings form field on a survey form.

Create a Survey Form in WordPress

The first thing you’ll need to do is install and activate the WPForms plugin. For more details, see this step by step guide on how to install a plugin in WordPress.

Next, you’ll need to install and activate the Surveys and Polls addon.

Surveys and Polls Addon

For help with finishing your survey form, check out our tutorial on how to create a survey form in WordPress.

Here’s what an example survey form looks like in the Form Editor:

Survey Form

And don’t forget, you’ll need to know how to add user ratings to your survey form too.

Note: You can add a user rating field to any WordPress form you create using WPForms. But for our example, we’re using the Survey Form template.

Survey Form Template
For more details, check out this documentation on how to customize the user rating form field.

Once you’ve customized the user rating field to your liking, you’re ready to enable conditional logic.

Enable Conditional Logic for User Ratings

Now that you have your survey form’s Rating field the way you want it, you’re ready to enable conditional logic to create a clutter-free form that still collects all the data you need from site visitors.

For our user ratings example, we’ll ask site visitors to explain a good rating, which we’ll set to be either a 4 or 5 star rating.

To start, we’ll add a Paragraph Text form field to our survey form so that if a site visitor gives a rating of 4 or 5 star rating, the text box will appear for them to fill out.

First, click on the Add Fields section in the Form Editor, and then drag the Paragraph Text form field from the left hand panel to the right hand panel.

Place it directly under the Rating form field.

Add Paragraph Text Form Field

Click on the newly added form field to make the following changes to meet your needs:

  • Change the form field label
  • Add a description
  • Make it a required field
  • Change the field size

Customize Paragraph Text Box

Next, click on the section labeled Conditionals and then on the checkbox labeled Enable conditional logic.

Enable Conditional Logic

After you click on this, you’ll be able to define the conditional logic rules.

Conditional Logic Rules

For the first rule, we’ll set the conditional logic to read Show this field if Rating is 4.

First Conditional Logic Rule

Next, click the Add new group button so you can add the second conditional logic rule.

Set the second conditional logic rule to read Show this field if Rating is 5.

Second Conditional Logic Rule

Click Save when you’re done.

Now, the only time the paragraph text field will appear on your survey form is if a site visitor selects a 4 or 5 star rating.

Final Survey Form with Conditional Logic User Ratings

And there you have it! You now know how to enable conditional logic for user ratings on your survey form.

If you are interested in boosting your email marketing efforts using smart conditional logic, and happen to use one of the most popular email marketing services, Mailchimp, check out this helpful guide on how to let users select Mailchimp groups on your WordPress forms.

So, what are you waiting for? Get started with the most powerful WordPress forms plugin today.

And don’t forget, if you like this article, then please follow us on Facebook and Twitter.

Using WordPress and want to get WPForms for free?

Enter the URL to your WordPress website to install.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.