Skip to content

Instantly share code, notes, and snippets.

@keshcreations
Last active July 25, 2019 20:32
Show Gist options
  • Save keshcreations/79c218cf9688d5d883dc093b3776c4b6 to your computer and use it in GitHub Desktop.
Save keshcreations/79c218cf9688d5d883dc093b3776c4b6 to your computer and use it in GitHub Desktop.
// Set a specific custom form
var trigger = function(){
window.usabilla_live("setForm", "**NAMEOFCUSTOMFORM**");
setTimeout(function() {
window.usabilla_live("click");
}, 100)
};
window.usabilla_live("setCustomOptionClick", trigger);
// Set the default form
window.usabilla_live("setEventCallback", function (category, action, label, value) {
if(action == "Feedback:Open") {
setTimeout(function() {
window.usabilla_live("setForm", "**NAMEOFDEFAULTFORM**");
}, 100)
}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment