> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.personizely.net/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 trigger a widget to show up on click

You can configure your widget to be displayed when a site visitor performs a certain action on your website (for example, clicks a ‘contact me’ button, adds an item to cart, etc.).

Follow these steps to create a pop up from an element on your website.

1. First, find the element you want to use for the trigger. As an example, I'll use our [website page](https://www.personizely.net/product/website-widgets/) and target the "Watch video" element:

![Here the trigger element is id “videoDemo”](https://storage.crisp.chat/users/helpdesk/website/30a06a2316be0a00/widgets_dyjf1x.png)

2. On the widgets page, find the widget you want to change and click the pencil button to edit it:

![Edit Widget](https://storage.crisp.chat/users/helpdesk/website/30a06a2316be0a00/screenshot-at-feb-03-14-09-42_1yvvqyx.png)

3. In the “Triggers” tab, click the “Enable a trigger” button and choose “Click” from the drop-down menu:

![Show on Click](https://storage.crisp.chat/users/helpdesk/website/30a06a2316be0a00/screenshot-at-feb-03-15-02-17_quk0r7.png)

4. Introduce the CSS Selectors. For an element with the id videoDemo, the selector would be **#videoDemo**:

![Selectors](https://storage.crisp.chat/users/helpdesk/website/30a06a2316be0a00/screenshot-at-feb-03-15-02-56_fy9cmr.png)

5. You can edit the list of Selectors below the drop-down menu, and you can also introduce a Condition for your trigger. Save your changes at the top-right corner of the screen and you are done:

![Conditions](https://storage.crisp.chat/users/helpdesk/website/30a06a2316be0a00/screenshot-at-feb-03-15-03-13_1sunk5m.png)

Now, when someone clicks on the button with **id=videoDemo**, this popup will show up.