Enabling & Disabling Popups
You can use the JS API to conditionally enable or disable a popup.
The following snippet enabled the specified popup.
nostojs(function(api) {
api.enablePopup("popupCampaignId");
});
Field | Type | Required | Default | Reason |
---|---|---|---|---|
id | String | ✔ | | The identifier of the popup campaign |
The following snippet disables the specified popup.
nostojs(function(api) {
api.disablePopup("popupCampaignId");
});
Field | Type | Required | Default | Reason |
---|---|---|---|---|
id | String | ✔ | | The identifier of the popup campaign |
Last modified 5mo ago