Warning: Undefined variable $post in /home/weformspro/public_html/wp-content/themes/t16-child/wedocs/docs-sidebar.php on line 6

Warning: Attempt to read property "post_parent" on null in /home/weformspro/public_html/wp-content/themes/t16-child/wedocs/docs-sidebar.php on line 6

Warning: Undefined variable $post in /home/weformspro/public_html/wp-content/themes/t16-child/wedocs/docs-sidebar.php on line 11

Warning: Attempt to read property "ID" on null in /home/weformspro/public_html/wp-content/themes/t16-child/wedocs/docs-sidebar.php on line 11

How to Add Conditional Logic with weForms' Submit Button

  1. Home
  2. Docs
  3. Tutorials
  4. How to Add Conditional Logic with weForms’ Submit Button

How to Add Conditional Logic with weForms’ Submit Button

Go to the WP Admin Dashboard > weForms > Add Form. After setting up your form fields on the form builder, insert any of the fields into your form:

  • Checkbox
  • Radio
  • Multi-Select
  • Dropdown

Here, in this example, we have inserted the radio field. Change the field label and field options according to your own will.

Next, select ‘Yes’ from the conditional logic under the Advanced Options.

Now, go to Form Settings and select the ‘Yes’ button from the “Conditional Logic on Submit Button” option as indicated below:

After that, you will be able to select the Conditional Field Label Name and the Conditional Logic Field Option.

Finally, save the form.

Frontend Preview of the Form

Now, hit the preview button to see how it works from the frontend:

After filling out the fields, your user will have to click on the radio button “Show the submit button”.

However, on clicking on the “Hide the submit button” will make the button invisible.

This is how you can use the conditional logic on the submit button.

Was this article helpful to you? No Yes

How can we help?