Skip to content

Surveys

Shows a survey. Only one survey is visible at a time, so an active survey closes first.

type launchSurvey = (surveyId?: number) => void
surveyIdnumber

The survey ID from the panel. Without it, the SDK shows the next survey that is targeted to the current user and page, if there is one.

window.userGuiding.launchSurvey(555)

Closes the active survey.

type hideSurvey = () => void
window.userGuiding.hideSurvey()

Use onSurveyView, onSurveyQuestionView and onSurveyAnswer to capture answers in your own systems as they are submitted.