Skip to content

Enabling & Disabling Popups

Mridang Agarwalla edited this page Jun 19, 2019 · 4 revisions

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

Enabling a Popup

The following snippet enabled the specified popup.

nostojs(function(api) {
  api.enablePopup("popupCampaignId");
});

Parameters

Field Type Required Default Reason
id String The identifier of the popup campaign

Disabling a Popup

The following snippet disables the specified popup.

nostojs(function(api) {
  api.disablePopup("popupCampaignId");
});

Parameters

Field Type Required Default Reason
id String The identifier of the popup campaign
Clone this wiki locally
You can’t perform that action at this time.