Engage

Popups

Design popups with forms, show them by rules or from workflows, and track results.

Popups are saved designs under SwiftAction → Popups. A popup can show on its own using display rules, be shown to a particular contact by a workflow’s Show popup action, or be embedded with a shortcode or block. Its form can create contacts and start workflows.

A newsletter popup and a promo banner on a WordPress site
A newsletter popup and a promo-code banner on a live site.

Create a popup

Click Add New Popup and start from a template (newsletter signup, discount reveal, exit-intent offer, abandoned-cart reminder, announcement bar, lead magnet, quick survey, contact form, event registration, flash sale countdown, thank-you coupon) or from scratch.

The popup template picker

The designer

The popup designer with blocks, preview and style panel
  • Left: the block library and the Layers panel (drag to reorder, nest in columns).
  • Centre: a live preview on desktop or phone. Click any block to select it.
  • Right: settings for the selected block, or for the popup when nothing is selected.
  • Undo and redo, autosave, and Apply brand colours from your brand kit.

Blocks

Heading, text, image, button, form, coupon box (with copy button), countdown timer, divider, spacer, social icons, columns (side by side on desktop, stacked on phones) and slides (rotating content). Every block has colours, typography, spacing, border and radius, and can be hidden on mobile or desktop. Text supports merge tags, personalised for known visitors.

  • Layout: modal, slide-in (pick the corner), top bar, bottom bar, fullscreen or inline.
  • Box: width, maximum height, padding, background colour, gradient or image (with focal point), border, radius, shadow, overlay colour and opacity.
  • Text: your theme’s font or a system font stack, and a base size.
  • Close button style and position, open animation (respects “reduce motion”), mobile overrides, and custom CSS scoped to the popup (selector stands for the popup box).
  • Steps: a main step and an optional thank-you step shown after the form is sent.
Note
Popups render inside a Shadow DOM, so your theme’s CSS can’t break them and their CSS can’t leak into your site.

Forms

The form block has these field types: email, first name, last name, phone, text, long text, number, dropdown, radio, checkboxes, date, hidden and consent checkbox. Each field has a label, placeholder, required flag, half or full width and a default value, and can be saved to a built-in or custom contact field.

  • On submit: the contact is created or updated by email, mapped fields are saved, optional tags are added, then the thank-you step shows, a message appears, or the visitor is redirected.
  • Workflows: the trigger Form submitted (popup or banner) starts a workflow; answers are available as {{form.field_key}} and as “Answer: …” conditions.
  • Spam protection without captchas: a honeypot field, a signed token per popup, a rate limit (10 submissions per IP per 10 minutes) and server-side validation.
  • Submissions are listed per popup and on the contact’s page. Retention: Settings → Data.

Display rules

Turn on Show this popup automatically on the Display rules tab to show it without a workflow.

Display rules: where, when, who, how often and schedule
RuleOptions
1. WhereEvery page, or include/exclude: front page, blog, specific pages or posts, post types, URL contains, search results, 404, and WooCommerce shop, product, category, cart and account pages.
2. WhenAfter some time on the page, after scrolling down a percentage, on exit intent (desktop), after a period of inactivity, or manually (only from a button, link or JavaScript). Optionally only after N page views.
3. WhoEveryone, new or returning visitors; logged in, logged out or both; contacts with any of certain tags, or never with certain tags; desktop, tablet and phone.
4. How oftenOnce per visitor, once every few days, once per visit, or every page view. Stop after the form is submitted or a button is clicked; hide for N days after it’s closed.
5. ScheduleOptional start and end date and time, in the site’s timezone.

Showing popups from workflows

The Show popup action queues a saved popup for that contact. It appears on their next page view, after an optional delay, and expires after a number of days if they don’t come back. Because it’s personal, merge tags (for example a coupon created earlier in the workflow) are filled in for them. Popup triggers: Popup button clicked, Popup dismissed and Form submitted.

Shortcode, block and JavaScript

Shortcodes
[swiftaction_popup id="5"]                                  // inline, inside the page
[swiftaction_popup id="5" trigger="click" text="Get the guide"]  // a button that opens it

There is also a SwiftAction Popup block. Any element with the class swa-open-5, the attribute data-swa-open="5" or a link to #swa-popup-5 opens popup 5.

JavaScript
swiftaction.openPopup( 5 );
swiftaction.closePopup();

document.addEventListener( 'swiftaction:popup:submitted', ( e ) => {
  console.log( e.detail.id, e.detail.source ); // queue | rules | inline | click
} );
// Also: swiftaction:popup:shown, swiftaction:popup:clicked, swiftaction:popup:dismissed

Stats

The Popups list shows views, clicks, submissions, dismissals and the conversion rate for each popup; the dashboard has a Popups card. Stats can be reset with the Reset stats row action.

The popups list with stats
Page caching
Display-rule popups for anonymous visitors work with page caching. Popups queued by workflows are personal: make sure your cache plugin doesn’t serve cached pages to visitors with the swiftaction_guest cookie (or to logged-in users, which most caches already skip).
For SwiftAction 1.0 · Updated 5 December 2026 · Questions or corrections?