cancel
Showing results for 
Search instead for 
Did you mean: 

Marking a field as required

Former Member
0 Kudos

Hi,

Will marking an input field state as required automatically make a validation? I observed something strange that if i bind it to a value attribute, the check works, but for a model attribute it doesn't. Why is that?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

No, this is only a visual hint.

Armin

Former Member
0 Kudos

But it does work for a value attribute connected to the root - this I have tried. Is there anything else I need to do for such automatic checks?

Former Member
0 Kudos

Very strange.

The only way you can enforce required attributes declaratively is to define your dictionary type based on string type and define Minimum Length constraint to be 1.

Then, if you will use this DDIC type for plain context attributes and / or model attributes then you get all necessary validation checks "behind the scene"

VS