ForumCategory: QuestionsJS SDK Pre chat survey: getPreChatSurvey returns the survey even when turned off
Anusha asked 49 years ago

When we use getPreChatSurvey method that is mentioned in the Javascript  SDK docs we get the survey, even though the survey has been turned off. I don’t see any attribute in
onPreChatSurvey either, that can tell us a survey is off. How do we determine a survey is turned off and there by not show the survey to the user? Attaching a screenshot to show how the pre chat survey is turned off.