00Days00Hours00Mins00Secs
Black Friday & Cyber Monday Offers!
Explore Now!

Knowledge Base

Hi, How can we help?

Setting Conditional Logic

Conditional logic can be assigned either to a Section or to a Field based on the user’s discretion

Conditional Logic on a New Section.

You can show/hide/disable sections with respect to conditions you set in the Conditional Logic

Conditional Logic on Fields.

You can show/hide/disable fields with respect to conditions you set in the Conditional Logic.

Setting conditional Logic.

At first, You have to tick the ‘Enable Conditional Logic’ checkbox to enable it.

Logic Action:-

There are three logical actions: Show, Hide, and Diable(But will be visible). You set any of the three as per your needs.

Items:-

Here you want to choose the field name in which the event takes place.

Relation:-

Choose the correct relation of the field with the value from the drop-down list. Here it provides different relations like;

  • Is
  • Is not
  • Is In
  • Is not In
  • Is Empty
  • Is not empty
  • Is greater than
  • Is less than
  • Is greater than or equal
  • Is less than or equal
  • Text contains
  • Text does not contains
  • Text start with
  • Text end with

There are certain more relations that are only applicable if the field is a Date field, and they are

  • Week Day is 
  • Month is 
  • Day of Month is
  • Year is

Value:-

Here you want to choose the value that you want to match the event through the relation.

Extra Fields.

  • Attribute / Variations: This option is used to set conditional logic to the Attribute / Variations which already exist in your Woocommerce 
  • Custom Attributes: The option is used to set the conditional logic for the newly created custom attributes.
  • Product Quantity: This option is used to set conditional login to the product quantity  
  • Stock Status: this option is used to set conditional logic for the stock status. You have the option to set the status to either ‘In stock’ or ‘On Backorder’ 
  • Stock Quantity: This option is used to set the conditional logic for individual stock quantity
  • WCPA Custom Fileds: This option is used to set conditional logic to the fields created by using WCPA
  • Product SKUs: Used to assign conditional logic based on product SKU
  • Product List (IDs): Used to assign conditional logic based on product IDs.You also have the option to use the variation ID here for variable products.
  • User Role: This option is used to set conditional logic based on the user role created. Each newly created user role will be displayed in the highlighted area below in order to set the conditional logic
  • Default: All other fields which are present in the created form will be displayed under the default section

Examples.

1. The text field will show only when the Select field is Option 1. For every option other than Option 1, it will stay hidden.

2. The select field will hide if the Product Quantity is greater than 3.

3. The selected field will show only when the Radio Group is empty AND Variation sizes are Large.

4. The selected field will show only when the Date Field date is Feb 1, 2023, OR Time is 01:00 AM OR Text Filed text starts with A.

5. The selected field will be disabled(but will be visible) when the text field is empty, and if the text field contains any text the field will be active

To have a look at the live preview for conditional logic, Click Here 

Customer Support

If you have questions about our plugin(s), are experiencing issues with any of our plugin