Question T5830
Visible to All Users

survey creator: how to remove "datetime" from input type dropdown

created 4 years ago

survey creator: how to remove "datetime" from input type dropdown

Answers approved by surveyjs Support

created 4 years ago

Hello,

You can access the inputType property of a text question object and remove the datetime item from the property object's choices array.

JavaScript
var prop = Survey .Serializer .findProperty("text", "inputType"); const index = prop.choices.indexOf("datetime"); if (index > -1) { prop.choices.splice(index, 1); }

Thanks,
Andy