Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/instant-validation-for-visibility-rules-in-studio

# How to validate the new Visibility Rules on Studio?

> [!WARNING]
>
> Instant Validation is only supported for the new Visibility Rules on Studio. For more information on the new Visibility Rules, see [Understand the new Visibility Rules for Content](/web/understand-advanced-visibility-rules-for-content).

While configuring content and widgets on Studio, Instant Validation provides immediate feedback for both [Visibility Rules](/web/advanced-visibility-rules-for-content) and [Element Precision Rules](https://support.whatfix.com/studio/docs/element-precision-rules-for-beacons), showing whether each rule applied is valid or invalid.

Expand the following accordions for more details.

****Validate Visibility Rules on Studio****

Use the following steps to validate Visibility Rules on Studio:

1. While creating content using Whatfix Studio, click **Visibility Rules**. ![Click\_AVR.png](/images/91/Click_AVR-915a10db.png)
2. On the **Visibility Rules** page, click **When does the beacon start appearing?** ![](/images/72/When_does_beacon_appear-721bcb93.png)
3. From the **What causes the beacon to appear?** dropdown, select **Something on the application**. ![](/images/0c/Something_on_app-1-0c8c1ac4.png)
4. From the **What would you like to identify?** dropdown, select **Element**. ![](/images/15/Select_element-15982015.png)
5. From the **How would you like to identify the element?**, click **Manually on application**. ![](/images/71/Manually_on_app-71aa8dc5.png)
6. Click **Select element** and select the element on the page. ![](/images/c1/Select_element-1-c158de35.png)
7. In the **Check if element** section, choose **Exists**. ![](/images/cf/Click_Exists-cfc1a33e.png)

> [!INFO]
>
> - Once the element is selected, Whatfix immediately displays a message: **Applied condition is valid on this page**, indicating that the selected element is valid on the page. ![](/images/68/valid_on_page-684efcea.png)
> - If the condition does not apply to the current page, Whatfix displays a message: **Applied condition is invalid on this page**. ![](/images/0d/invalid_on_page-0d6a69f9.png)

> [!WARNING]
>
> Some Where conditions such as **URL** might show invalid on the page depending on how they are configured. For example, a **URL** **Equals** condition might show as invalid if it matches only the domain instead of the full URL. Using **URL** **Contains** can provide the correct validation. For more information, see [Set Where your content and widget appears](/web/set-where-your-widget-appears). ![](/images/9b/Invalid-9ba4e4af.png)

8. Finish creating the content and click **Save Beacon**. ![](/images/cc/Save_beacon-ccce2feb.png)

****Validate Element Precision Rules on Studio****

Use the following steps to validate Element Precision Rules on Studio:

1. On Whatfix Studio, click **Element Precision**. ![](/images/a7/Element_precision_rules-a79efd20.png)
2. From the **How would you like to identify the element?** dropdown, select **Using CSS selector**. ![](/images/17/AVR_Css_Selector-17339616.png)
3. Enter the selector **Value**. ![](/images/4b/EP_Validation-1-4be431d3.png)

> [!INFO]
>
> - If the selector is valid, the content remains visible on the page.
> - If the selector is invalid, the content disappears from the page, indicating that the condition is invalid.
>
> ![](/images/c5/EP-c5551c35.png)

4. Finish creating the content and click **Save Beacon**. ![](/images/cc/Save_beacon-ccce2feb.png)
