Skip to content

Validating a computed field #1938

Answered by Sayan751
flcdrg asked this question in Q&A
Apr 8, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

I have updated the example. It needed

    ValidationHtmlConfiguration.customize((options) => {
      options.DefaultTrigger = ValidationTrigger.changeOrFocusout;
    })

Note that the validate binding behaviour is intentionally designed in such a way that it delays the validation feedback to reduce the cognitive load of the user and in turn offers better UX. Roughly speaking, the event based validations are not triggered, if a field is not touched and/or dirty. If the validation is "forced" via the ValidationController#validate, only then all the fields and objects registered with the controller gets validated.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@flcdrg
Comment options

@Sayan751
Comment options

Answer selected by flcdrg
@flcdrg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants