Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Usage question: Does SelectItem + setValidateOnExit(true) make sense?

    Hi Isomorphic,

    given "normal" circumstances without additional validators, does having setValidateOnExit(true) on a SelectItem make any sense?

    You could force a fast error (before DynamicForm.saveData()) for a required="true" field, but besides that? I have this in my code and think that it might be unnecessary.

    Best regards
    Blama

    #2
    We agree, it makes sense with required="true" and it could make sense if other validators mean that some SelectItem setting could be wrong depending on other field values. Outside of those cases, it seems like an unnecessary setting.

    Comment


      #3
      As a general principle, be sparing with validateOnExit:true. Users often need to make several changes across different fields in order to put data back into a correct state. Telling the user immediately that the data is wrong *when they already know that* is usually perceived as pedantic and annoying.

      Comment

      Working...
      X