Externally validate autocomplete #5234
Unanswered
mdmontesinos
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We've already discussed supporting fluent validations on the autocomplete component in #5129.
Meanwhile, I was wondering if it's possible to trigger the internal validation of the component from an external event.
In this way, I could still combine (kind of) my fluent validations for all the simple text fields with the custom validation for the autocomplete components. Therefore, when trying to submit the form, all the fields (regular or autocomplete) should trigger validation and display their corresponding messages.
EDIT: The autocomplete validation is usually triggered by the submit button and the validation displays. However, I require clearing the value of the second autocomplete when the first one changes and, in this case, submitting the form does not trigger the validation of the second autocomplete and results in allowing a null/empty string value passing through.
For example:
Beta Was this translation helpful? Give feedback.
All reactions