kenticorequired-field

Kentico - How to make a field required?


I have a custom module with different classes. One of the classes is a Company class with several fields. enter image description here

After the creation of this class we needed to add extra fields. Some of them need to be required, but I'm not able to mark them required. Is this only possible on initial creation of the class and fields?

How can I make them required without needing to recreate the entire class?

Thanks in advance, Nele


Solution

  • I tried on my own Kentico instance and it seems that when I uncheck the 'Can be customized' setting on the custom module class that I am able to change the required setting on the fields. Can you check if this solves your problem? I can't find anything about this option in the documentation yet.

    It seems to me that the 'Can be customized' setting only applies to the Kentico classes.