Skip to content

Concepts

Completion rules

[object Object]

RuleThe step completes whenUse it for
tap_anchorThe user taps or clicks the spotlighted elementButtons and links: the most natural rule
pageThe user is on a page matching the step's path, straight away if they already areTaking people somewhere, so a guide works from any page
eventYour app calls track with the step's event nameThings that finish later, like a saved form
next_buttonThe user presses Next on the cardExplanations without an action
manualYour code calls complete with the step's idAnything else
JSON
{ "complete_on": { "type": "event", "name": "client_selected" } }
TypeScript
// After the user picks a client:
playstep.track('client_selected')

// Or complete a manual step by its id:
playstep.complete('fill-client')

tap_anchor listens before your own click handlers run, so the step completes even if the tap navigates to another page. The guide goes along to that page (see Leaving a guide part-way). A tap_anchor step needs an anchor.

While a step waits for the user, the card says Waiting for you. next_button steps show Next (or Done on the last step), and every step after the first has Back. The close button ends the guide at any time.

Page steps

A guide that starts from the guide list, a "Show me how" button or Replay can start on any page. Begin it with a step that takes the user where the guide happens, and complete that step on the page itself:

JSON
{
  "id": "open-plugins",
  "anchor": "plugins-nav",
  "title": { "en": "Open Plugins" },
  "body": { "en": "Plugins is in the sidebar." },
  "complete_on": { "type": "page", "path": "/app/*/plugins*" }
}
  • The anchor points at the link that goes there. Tapping it does not complete the step; arriving on the page does.
  • If the user is already on a matching page when the step would show, the guide moves straight to the next step, with no flash of this one. That holds however the guide starts: its trigger, start(), Replay or Next guide.
  • Paths follow the trigger rules: * matches any run of characters, including /, and trailing slashes are ignored. On Flutter they are route names.
  • Your app needs to send nothing. The web SDK sees client-side navigation on its own (autoPageViews, on by default); with it off, or on Flutter without named routes, report pages with page().
  • There is no Back to a page step: the user is already where it leads.
  • The steps after it belong on its page: if the user leaves that page part-way, the guide waits there until they come back.

Skip a step on some pages

skip_if_on leaves any step out when it would show on a matching page. Use it for a step that only makes sense elsewhere:

JSON
{ "id": "open-settings", "complete_on": { "type": "next_button" }, "skip_if_on": "/app/*/settings*" }

A step that is moved past (a page step on its page, or a skipped step) still reports step_shown and step_completed, so funnels stay whole.

Guides with page steps or skip_if_on are published as guide spec version 3. SDKs before 0.3 skip them, so update the SDK before you publish one. The dashboard and the server API work the version out from the steps.

Search the docs and guides.

Request a demo

We set up every new PlayStep workspace with its team. Leave your name and email and we'll book a demo and get you started.

We use your email only to arrange the demo. See the privacy policy.