Show Method
When should you use the Show method?
When you want to programmatically open a survey or load a new survey and subsequently open it, you can use the Show method.
📝
Important note. If the survey is already loaded but hidden, the Show method will not reload the survey. It will only toggle the survey visibility to show. If a survey is not loaded, the Show method will load the new survey, remove the current survey, and then show the new survey.
How to use the Show method
To show any survey on your page, all you need to do is call the show
method on the window.lb
object and pass the survey ID.
<script>
window.lb("show", {
survey_id: "YOUR SURVEY ID",
});
</script>