I'm trying to add a custom name
property to all my user surveys, but an issue arises where the default value doesn't get serialized when saving, even though the default value correctly appears in the survey property grid. This happens while using any of the following methods:
JavaScriptSurveyKo.Serializer.addProperty("survey", {
name: "name:text",
default: "Unnamed Survey"
});
JavaScriptSurveyKo.Serializer.findProperty("survey", "name").defaultValue =
"Unnamed survey";
JavaScriptSurveyKo.Serializer.findProperty("survey", "name").defaultValueValue =
"Unnamed survey";
Any ideas on how to get around the issue?