Skip to content
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

form.errors() display errors for disabled fields #518

Closed
Desteel opened this issue Sep 4, 2019 · 2 comments
Closed

form.errors() display errors for disabled fields #518

Desteel opened this issue Sep 4, 2019 · 2 comments

Comments

@Desteel
Copy link

Desteel commented Sep 4, 2019

Hello there.
I have form with field with switch disabled state.
I used this options

retrieveOnlyEnabledFields: true,
validateDeletedFields: false,
validateDisabledFields: false

I need display errors count for active fields and i write method for get it from form.errors(), but this method get errors for all fields.

I can't find API method for get errors only for active fields.
How i can did it?

@mogadanez
Copy link

actually seems disabled fields not validated at all

@foxhound87
Copy link
Owner

retrieveOnlyEnabledFieldsErrors form option has been introduced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants