# Fields Conditional Logic

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:

![](https://3552609976-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M50Y01TKemmHpSl6feB%2F-M50Y0ZIgvH_dYi7thL3%2F-M50YANoX9YXcfX0R6s6%2Ffields-conditional-logic.gif?generation=1587016425897795\&alt=media)

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!**&#x20;

🏆 **PRO TIP**: *It is also possible to use* [*NOVs*](https://kb.moomoo.agency/uni-cpo-4-documentation/usage/panel/nov) *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!*

The interface of this feature looks like this:

![](https://3552609976-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M50Y01TKemmHpSl6feB%2F-M50Y0ZIgvH_dYi7thL3%2F-M50YANs9A-dsqZk9VpJ%2Ffields-cl-1.png?generation=1587016425548548\&alt=media)

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

![](https://3552609976-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M50Y01TKemmHpSl6feB%2F-M50Y0ZIgvH_dYi7thL3%2F-M50YANuc2-vu7Pu2JrR%2Ffields-cl-2.png?generation=1587016425677537\&alt=media) ⚠️ Always click on yellow **Fetch the rule** button after any changes in the builder are made!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.moomoo.agency/uni-cpo-4-documentation/usage/fields-conditional-logic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
