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
Gate Types
Defined as a block
Modal Gates
An event fires
Modal type gate is gate-checked
If fails pass;
Display modal
Success pass;
Fire event
Modal Gate Type
Test
Success
Fail
view
button
form
Eval Gate
1.
Last updated
Was this helpful?