Programmatic API for controlling Appzi surveys. Available via window.appzi after the widget loads, or in the ready callback.
window.appzi
ready
Open a survey by its configuration ID. The survey displays according to its configured settings (modal, slide-in, etc.).
// Open a survey programmaticallywindow.appzi.openSurvey('survey-abc123'); Copy
// Open a survey programmaticallywindow.appzi.openSurvey('survey-abc123');
// Via the ready callbackwindow.appziSettings = { ready: (appzi) => { document.getElementById('feedback-btn').onclick = () => { appzi.openSurvey('survey-abc123'); }; }}; Copy
// Via the ready callbackwindow.appziSettings = { ready: (appzi) => { document.getElementById('feedback-btn').onclick = () => { appzi.openSurvey('survey-abc123'); }; }};
Programmatic API for controlling Appzi surveys. Available via
window.appziafter the widget loads, or in thereadycallback.