I want to add validation to a document type in Umbraco
in back office when user create any document i want that document name should take minimum 10 characters only
How to do that ?????
Please refer highlighted area in screenshot- i want my validation on this name.
Umbraco Document Type Name Validation
I want to add validation to a document type in Umbraco in back office when user create any document i want that document name should take minimum 10 characters only
How to do that ????? Please refer highlighted area in screenshot- i want my validation on this name.
Hi pranjal,
you can hook into the events of the
ContentType
:https://our.umbraco.org/documentation/reference/events/ContentTypeService-Events
The one you should use is the
SavingContentType
where you then can do your checks.Code example:
Hope this helps!
/Michaël
is working on a reply...