Skip to content

Instantly share code, notes, and snippets.

@scottwater scottwater/page.html
Created Apr 15, 2019

Embed
What would you like to do?
AnyForm Custom Callback
<script>
var kol_widget_options = {
callback: function(data) {
if (data.counter == 1) {
window.location = `https://YOURSITE.com?kid=${data.social_id}`;
} else {
window.location = data.redirect_url;
}
}
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.