Enabling & Disabling Popups

You can use the JS API to conditionally enable or disable a popup.

Enabling a Popup

The following snippet enabled the specified popup.

nostojs(api => {
  api.enablePopup("popupCampaignId");
});

Parameters

FieldTypeRequiredDefaultReason

id

String

The identifier of the popup campaign

Disabling a Popup

The following snippet disables the specified popup.

nostojs(api => {
  api.disablePopup("popupCampaignId");
});

Parameters

FieldTypeRequiredDefaultReason

id

String

The identifier of the popup campaign

Last updated