Gated Events

Some Events might have pre-requisites before they can fire.

  • User is logged in to MemberStack

  • User is in a specific User Group

Use Cases

Form-Gate Navigation

Form-Gate a Modal

  • Check localStorage

  • If gate not passed

    • Display a form modal

    • On successful submit, set the localStorage cookie

    • On fail, exit

  • Perform original event

    • Display Modal

Concept

wfu-event-gate = function

Must return true

Pass in Event, so it can be fired

Last updated

Was this helpful?