> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.trustmary.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to add rules to surveys


> *Note: This help article applies to Custom Surveys. The default rules can't be freely modified with the template surveys.*

# About rules


Adding rules is a nifty way of adding more functionality to your surveys. By adding rules you can customize how the pages and questions appear depending on how the respondee answers.

For example, you could show related questions only for respondees from a certain location they've chosen in a previous question, or show a lead question for someone who's wants to leave one.

# Adding rules

To add rules to a page, click on the **three-dot menu** on any of the pages on the left in the survey editor. From the drop-down menu, click on **Rules** to open the rules menu**.** Adding rules to questions is done similarly, but by opening the rules menu from the three-dot menu on the question.

![](https://blackhole.customerly.io/attachments/froala/images/782beacdb0268d488e8ed1e69019fbe6.png)
This is where you can set the rules for your questions and pages. The basic principle here is that the rules should **always be set on the question or field you want to show or hide**, not the one that triggers the rule.  

![Setting rules in the rules menu.](https://storage.crisp.chat/users/helpdesk/website/-/b/8/0/8/b8083cc0c8b32000/nayttokuva-2025-12-15-kello-14_9fq9vc.png =800x427)

Additionally, you can also set multiple conditions for one question or page with the AND/OR operators.

![](https://storage.crisp.chat/users/helpdesk/website/-/b/8/0/8/b8083cc0c8b32000/nayttokuva-2025-12-15-kello-15_1mzlqrw.png =800x555)