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

Show missing required fields on form with validations #2353

Open
justjam2013 opened this issue Feb 11, 2025 · 0 comments
Open

Show missing required fields on form with validations #2353

justjam2013 opened this issue Feb 11, 2025 · 0 comments

Comments

@justjam2013
Copy link
Contributor

Feature Description

What is happening?

When an accessory is being configured on the config modal popup and required fields have not been filled in, an exclamation mark icon is still displayed next to the Save button.
When the plugin config specifies "strictValidation": true, the Save button is disabled, preventing the user from submitting an invalid configuration. However the modal popup does not display which fields have not been filled in.

What you expect to happen?

The configuration modal popup displays the required fields that need to be filled in that are causing form validation failure.

Potential solutions:

  1. Display an i info icon next to the Save button when the form fails validation. Hovering over the icon shows the list of missing fields in a tooltip.
  2. As the red ! icon is already displayed when a form fails validation, hovering over it shows the list of missing fields in a tooltip.

What problems would this new feature solve?

When configuring an accessory, users can check which fields still need to be filled in to pass form validation and save the configuration.

This would also help in debugging form validation issues.

@justjam2013 justjam2013 changed the title Show missing required fields when configuring an accessory Show missing required fields on form with validations Feb 12, 2025
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

1 participant