Why do it:
If you have disabled automatic display, you can use this code to trigger the popup opening via a specific element on the page (such as a button or a link).
Procedure
1. Access the popup editing page.
2. In the Content section, locate the Show Automatically checkbox.
3. Make sure the Show Automatically checkbox is unchecked.
- Note: If the box is checked, the popup is set to open automatically and the manual code will not be shown.
4. If you have just created the popup and haven't saved it yet, click Save Changes to generate the necessary ID.
5. Once the Show Automatically box is unchecked, a new line will appear with the label:
> Trigger the popup opening via Visual Builder events or use the following JavaScript code:
6. Copy the JavaScript code shown in the box. The code will be in the format:
javascript
initMSPopup(ID)
where ID is your popup's identification number.
7. Use this JavaScript code (for example, inside an onclick event of a button) to trigger the popup opening on your page.







