Uni CPO 4 Documentation
  • Introduction
  • Why Uni CPO?
  • Installation
    • Upgrade
  • How To Use
    • Plugin's Settings
    • Builder
      • Data Structure
      • General Settings
      • Non Option Variable (NOV)
      • Weight Conditional Logic
      • Dimensions Settings
      • Image Conditional Logic
      • Formula Conditional Logic
      • Dynamic labels for options/suboptions
      • Shipping Classes Conditional Logic
      • Cart Discounts
    • Basic Modules
      • Row
      • Column
      • Paragraph
      • Button
      • Image
    • Options
      • Text Input
      • Text Area
      • Select
      • Radio Inputs
      • Checkbox Inputs
      • Date Picker
      • File Upload
      • Dynamic Notice
      • Range Slider
      • Matrix
      • Extra Cart Button
      • Google Map
      • Distance by Postcode
      • Font Preview
    • Fields Conditional Logic
    • Validation Conditional Logic
    • Colorify Feature
    • Imagify Feature
    • "Free Sample" Feature
    • Arithmetic Operators
    • Manage Order Items
    • Suboptions export/import
  • For developers
    • Actions & Filters
    • JS events
    • Extending Uni CPO
  • Duplicating options and products
  • How to debug
  • Affiliation
  • Themes & Plugins Compatibility
    • Popup Maker How To
    • Boxtal
    • Pitchprint.com
    • NBDesigner
    • Toggle Tax For Woocommerce
  • FAQ
  • Refund Policy
  • Managing licenses and billing info
    • License Utilization
  • Uni CPO Add-ons
    • Custom dynamic SKU (paid)
      • Stock management based on dynamic SKU
    • "Send Inquiry" (free)
    • Hidden/disabled option (free)
Powered by GitBook
On this page

Was this helpful?

  1. How To Use

Fields Conditional Logic

PreviousFont PreviewNextValidation Conditional Logic

Last updated 5 years ago

Was this helpful?

Fields Conditional Logic feature makes it possible to conditionally display and hide Options based on inputs/choices in other Options. This is how it looks like:

It is possible to display/hide Options based on the value(s) of one or many other Options. It is also possible to create an effect of nested Options 💪 when the second Option is hidden/shown based on the value of first Option and the third option is hidden/shown based on the value of the second Option. Just like on the image above. 👆

Fields conditional logic works without sending AJAX requests to the server, so it is fast and smooth!

The interface of this feature looks like this:

Enable conditional logic? - Enables/disables this functionality for the Option.

Show or hide by default? - Choose whether to hide or show by default. 'hide' setting is used most often. It means that the Option will be hidden by at the beginning and displayed only if the condition from the field conditional logic builder is met.

Field conditional logic builder - this where you can create a condition for the Option. Once created, condition cannot be removed, but you always can disable this functionality by using Enable conditional logic? setting.

🏆 PRO TIP: It is also possible to use in Fields Conditional Logic. However, in this case AJAX request is required to get values of NOVs in order to evaluate whether some Option must be shown/hidden!

⚠️ Always click on yellow Fetch the rule button after any changes in the builder are made!

NOVs