2

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

1
  • Do you already have data of this class in the database? Commented Mar 24, 2020 at 15:55

1 Answer 1

3

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.

2
  • That's it. Thanks!
    – Nele
    Commented Mar 24, 2020 at 16:54
  • 1
    Reference in the documenation can be found here. Note: The extended class must be customizable . You cannot add the required reference field for classes that are not customizable. Commented Mar 24, 2020 at 19:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.