Created
April 15, 2019 10:18
-
-
Save scottwater/704929908e48bb3cbd14b000827a2ee5 to your computer and use it in GitHub Desktop.
AnyForm Custom Callback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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