# Conditional Visibility Filter

Set conditional visibility to choose when a tab or widget will appear based on data or a user. This allows you to hide information until it is necessary to show it or to choose who should see specific information when appropriate.&#x20;

For example, set a banner telling a user that information is missing when a specific field is empty.&#x20;

1. In **Edit layout** click **Set conditional visibility**
2. Select the field. In this example, it will be the "City" field
3. Select operator "is empty"

<figure><img src="/files/rZNfQVkQ4FVwuiO2QMPS" alt="" width="331"><figcaption></figcaption></figure>

<figure><img src="/files/oHaHSFPZ7NQkoh6MJ4Xd" alt=""><figcaption></figcaption></figure>


---

# 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://docs.stackerhq.com/stacker-astra/security/data-filters/conditional-visibility-filter.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.
