CodeSurvey.Serializer.addProperty("survey", {
name: "competitionId",
category: "general",
visibleIndex: 4,
type:"checkbox",
displayName: "Select competition",
choices: [
{ value: "value1", text: "value1" },
{ value: "value2", text: "value2" },
{ value: "value3", text: "value3" },
],
onSetValue: (survey, value) => {
survey.setPropertyValue("competitionId", value);
}
});
This instead adding of checkbox create dropdown Why
I also use only one checkbox highlighted red text in below image