I'm experiencing some validation trouble when the required property is intended to be filled in a modal dialog as part of a CompositeProperty (when used in a CollectionProperty's item of that type to be more precise).
The required constraint is not triggered, and I can add an empty CompositeProperty item in the document
I'm using the version 1.2.4(beta3) KalikoCMS.Core
My code:
<code>
public class MyPage : CmsPage {
[Property("My Custom Property Name")]
public virtual CollectionProperty<MyCustomProperty> MyCustomPropertyName { get; set; }
....
[PropertyType("d9a7121c-8bb7-4c3a-8ae5-c3b71a96b215", "MyProperty", "MyProperty", EditorControl)]
public class MyCustomProperty : CompositeProperty
{
[Property("Mandatory Field")]
[Required]
public virtual StringProperty MandatoryField { get; set; }
[Property("Optional Field")]
public virtual StringProperty OptionalField { get; set; }
....
</code>
Is there something that I'm missing?
Thanks in advance,
Davide
Best regards,
Davide
best regards,
Davide