Closed cpanti closed 10 months ago
Hello Catalin,
A survey from the mentioned demo uses a custom score
property. The custom score
property is registered within a SurveyJS Form Library by the JavaScript code:
// Add a custom `score` property to survey questions
Survey.Serializer.addProperty("question", {
name: "score:number"
});
However, when you create a survey at MySurveys, you do not run the Serializer.addProperty
function and do not register a custom property. Therefore, a JSON Editor tab doesn't allow you to leave the tab because a survey JSON is considered as invalid: it contains a score
property doesn't exist within a question serialization by default.
To implement the Scored Quiz with custom scores, you need to follow the demo and register a custom score
property using the Serializer.addProperty
function. Please refer to the demo for more information.
Should you have any further questions, please feel free to contact me at any time.
Are you requesting a feature, reporting a bug or asking a question?
I believe it can be considered a BUG.
What is the current behavior?
The property 'score' in class 'xxx' is unknown in survey-creator/JSON Editor
What is the expected behavior?
You should be able to use 'score' or any other custom property in survey-creator
How would you reproduce the current behavior (if this is a bug)?
Provide the test code and the tested page URL (if applicable)
N/A
Specify your