Widget Hooks
This action will trigger a given callback function when the survey is loaded and shown.
FBLY.action("onSurveyLoaded", () => { /* Your code */})
This action will trigger a given callback function immediately after a customer answers a question of the survey. This means, if the survey has 3 questions the function will be called each time a question in answered, in this case 3 times.
FBLY.action("onResponse", () => { /* Your code */})
This action will trigger a given callback function after the survey is completed.
FBLY.action("onSurveyFinished", () => { /* Your code */})