Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/show-content-based-on-events-related-to-whatfix-content

# Show content based on events related to Whatfix content

Using the new Visibility Rules experience, Whatfix enables you to trigger a widget based on callbacks made by existing Whatfix content or widgets. For example, show a Survey right after the user completes an onboarding Flow to ask them for feedback.

Use the following steps to display your widget based on a linked content:

> [!WARNING]
>
> - If you’re using the Events related to Whatfix Content condition, all other Visibility Rules are cleared.
>
> ![Enhanced Visibility Rules Screenshots](/images/14/vr2_warning-message-linked-content-14973321.png)
>
> - Whatfix enables you to use this condition only for Popups and Surveys

1. In the Visibility Rules section for your widget, click **When does the pop up start and stop appearing?**

![Enhanced Visibility Rules screenshot](/images/65/vr2_start-and-stop-dropdown-6510a1d5.png)
2\. Using the **What causes the pop up to appear?** dropdown, select **Events related to Whatfix Content**.

![Enhanced Visibility Rules Screenshots](/images/d8/vr2_events-related-to-whatfix-content-d8624503.png)
3\. Select your **Content type** using the dropdown. Whatfix enables you to trigger content based on the following content types:

![Enhanced Visibility Rules Screenshots](/images/3b/vr2_select-content-type-3b5c8a83.png)

- **Flow**
- **Popup**
- **Survey**

> [!INFO]
>
> If you select **Launcher** as the trigger, the widget is shown when the Launcher is clicked. Ensure that you link this widget to the Launcher when creating it.

1. Click **Content**.

![Enhanced Visibility Rules Screenshots](/images/a7/vr2_content-click-a730eba8.png)
2\. Select the content you want to act as the trigger.

![Enhanced Visibility Rules Screenshots](/images/c6/vr2_select-content-c6638a72.png)
3\. Click **Add**.

![Enhanced Visibility Rules Screenshots](/images/92/vr2_content-add-92bee142.png)
4\. From the **Event** dropdown, select the trigger event related to the selected content. For more information on the various content and their related triggers, see [List of Events for Linked Content](/web/list-of-events-for-linked-content).

![Enhanced Visibility Rules Screenshots](/images/06/vr2_select-event-060bed4e.png)

> [!WARNING]
>
> If you’ve selected a Flow-based event, select the step that you want to use as a trigger using the **Step** dropdown.
>
> ![Enhanced Visibility Rules Screenshots](/images/00/vr2_select-step-linked-content-001cfd29.png)

1. Once you have added all the required Visibility Rules, click **Save**.

![vr2\_save visibility rules](/images/64/vr2_save-visibility-rules-640a47fe.png)
