Custom Survey Trigger
Trigger a Zigpoll survey with custom JavaScript events
Step #1: Get Your Poll ID
Step #2: Add the Trigger Code
function renderZigpoll() {
var pollId = YOUR_POLL_ID;
window.Zigpoll.pollId = pollId;
window.Zigpoll.onload = function () {
window.Zigpoll.open();
}
window.Zigpoll.refresh();
}Step #3: Call the Function on Your Event
function renderZigpoll() {
var pollId = YOUR_POLL_ID;
window.Zigpoll.pollId = pollId;
window.Zigpoll.onload = function () {
window.Zigpoll.open();
}
window.Zigpoll.refresh();
}
document.getElementById('zigpoll-button').addEventListener('click', function () {
renderZigpoll();
});Last updated

