Skip to Content
author's profile photo Former Member
Former Member

Marking a field as required

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 06, 2005 at 10:14 AM

    No, this is only a visual hint.

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.