-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Entity Registration Modules MVP] [Stepper] Trigger Formly validations on blur #1535
Comments
Hey @brandydanner-gsa have you tried applying the modelOption onBlur to the fields where you want this behavior? Taking a look at our Stepper Advanced demo and going to the Report Detail step. The "Program or Project Title" field seems to have the behavior you are looking for. Entering data on that field does not clear the error until after the blur event. Same behavior with the error appearing. |
Requirements for when the form is empty when the step loads:
Requirements for when the form already has some data when the step loads:
|
Is your feature request related to a problem? Please describe.
For the Entity Registration modules we are using a custom stepper class that extends
SdsStepper
. We need the Formly validations to fire on blur when leaving a field so that the user immediately sees if there is an issue with the data they entered.Describe the desired solution
When the model is empty for a page, the Formly validations do not fire. In previous discussions, we mentioned this was an original requirement. However, it is desired that we can perhaps set a flag to turn this feature off so that Formly validations will run on blur even if it's the first time they've entered data on that page.
Describe alternatives you've considered
What we're currently doing is manually running validations when the user clicks the Next/Previous buttons instead of on blur.
Additional context
Please contact Brandy Danner / Scarlet Team.
The text was updated successfully, but these errors were encountered: