You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(forms): add form lifecycle events section to README (#446)
* docs(forms): add form lifecycle events section to README
Documents the FormLifecycleEvent API introduced in PR #434, including
registration/unregistration, threading guarantee, and per-event semantics.
Adds a feature matrix row and TOC entry. Example verified via
:sample:assembleDebug.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* docs(forms): drop edge-case carve-outs from lifecycle events section
Trim 'fires only when CTA has deep link' and 'does not fire on internal teardown'
notes — these are translation-layer artifacts, not behavior worth highlighting in
docs aimed at integrators.
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
// e.g. myAnalytics.track("Form CTA Clicked", ...)
856
+
}
857
+
});
858
+
859
+
// To stop receiving events, unregister the handler
860
+
KlaviyoForms.unregisterFormLifecycleHandler();
861
+
```
862
+
</details>
863
+
864
+
Registering a lifecycle handler is optional and does not affect normal form behavior — forms are displayed and dismissed
865
+
regardless of whether a handler is registered. Only one handler can be registered at a time; calling
866
+
`registerFormLifecycleHandler` again replaces the previous registration.
867
+
796
868
## Geofencing
797
869
798
870
[Geofencing](https://help.klaviyo.com/hc/en-us/articles/45194892526747) allows you to trigger events when users enter or exit geographic regions defined in your Klaviyo account.
0 commit comments