> For the complete documentation index, see [llms.txt](https://knowledge.out-smart.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledge.out-smart.com/marketplace-packages-and-power-ups/power-ups/forms/what-is-visual-forms/use-advanced-mandatory-rules-in-visual-forms.md).

# Use advanced mandatory rules in Visual Forms

Advanced mandatory rules let you control when a field becomes required.

Use them when a field should only be mandatory in specific situations.

### When advanced mandatory rules help

Use them when you need to:

* require extra details after a specific answer
* require a signature only for certain outcomes
* require a photo or comment after a failed check

### How the rules work

Each rule checks another field.

You then decide when the selected field becomes required.

You can combine rules with:

* **AND** — all conditions must be true
* **OR** — at least one condition must be true

### Set up advanced mandatory rules

{% stepper %}
{% step %}

### Open the Visual Form

Open the form in **Settings → Forms**.
{% endstep %}

{% step %}

### Select the field

Click the field that should become required.
{% endstep %}

{% step %}

### Change the mandatory setting

Open the field properties.

Set the mandatory option to the advanced mode.
{% endstep %}

{% step %}

### Add the rules

Choose the field to evaluate.

Then choose the operator and value.
{% endstep %}

{% step %}

### Choose the rule logic

Use **AND** or **OR** when you combine multiple rules.
{% endstep %}

{% step %}

### Save and test

Save the form.

Then test each expected outcome before rollout.
{% endstep %}
{% endstepper %}

### Good rule design

* keep the logic as simple as possible
* use clear field names
* test both required and not-required outcomes

### Frequently asked questions

<details>

<summary>Can I use more than one rule?</summary>

Yes.

You can combine multiple rules with **AND** or **OR**.

</details>

<details>

<summary>Do these rules also work in the mobile app?</summary>

Yes.

Test the result on the device your team uses.

</details>

<details>

<summary>Can every field type use advanced mandatory rules?</summary>

Usually yes.

The available operators can differ per field type.

</details>

### Related topics

* [**Use the Visual Forms Configurator**](/marketplace-packages-and-power-ups/power-ups/forms/what-is-visual-forms/use-the-visual-forms-configurator.md)
* [**Configure read-only fields in Visual Forms**](/marketplace-packages-and-power-ups/power-ups/forms/what-is-visual-forms/configure-read-only-fields-in-visual-forms.md)
* [**Use Visual Forms in the mobile app**](/marketplace-packages-and-power-ups/power-ups/forms/use-visual-forms-in-the-mobile-app.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://knowledge.out-smart.com/marketplace-packages-and-power-ups/power-ups/forms/what-is-visual-forms/use-advanced-mandatory-rules-in-visual-forms.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
