Is it possible to remove the reset button on the property otherTextName?
Is it possible to remove the reset button on the property otherTextName?
Answers approved by surveyjs Support
created 7 months ago
(modified 7 months ago)
Hello Giorgio,
This property uses a customized Single-Line Text Input with the Reset option editor.
If you wish to remove the Reset button for this particular property editor, you can register a custom Text property editor within the PropertyGridEditorCollection. Consider the following code:
JavaScriptimport { PropertyGridEditorCollection } from "survey-creator-core";
PropertyGridEditorCollection.register({
fit: function(prop) {
return prop.name === "otherText";
},
getJSON: function(obj, prop,options) {
return { type: "text"} // Use a regular Text input field without the Reset button
}
});
Please let us know if you have further questions.
Hello Giorgio,
Do you want to remove this button for all property editors? I doubt that you want to remove it for only one property.
Thank you,
Andrew
SurveyJS Team
In particular, I need to remove this, but it's okay to remove it from all.