Hey,
We have a question for survey js library.
we have a suvey json like this :
Codeexport const CustomJson = (LocalizedStrings: any) => {
return {
pages: [
{
name: "page1",
elements: [
{
type: "comment",
name: "AppleMessagesforBusinessJSON",
title: LocalizedStrings.AppleMessagesforBusinessJSON,
isRequired: true,
placeHolder: LocalizedStrings.EnterJSON
}
]
}
]
};
};
we want to make sure user input VALID JSON in the comment question. is there a way to do that? For example function call?
And if not, how can we highlight the question during complete, do we have a function similar like survey.selectElement(questions[0]);