You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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