survey creator: how to remove "datetime" from input type dropdown
survey creator: how to remove "datetime" from input type dropdown
Answers approved by surveyjs Support
Hello,
You can access the inputType property of a text question object and remove the datetime
item from the property object's choices
array.
JavaScriptvar prop = Survey
.Serializer
.findProperty("text", "inputType");
const index = prop.choices.indexOf("datetime");
if (index > -1) {
prop.choices.splice(index, 1);
}
Thanks,
Andy