nautobot / nautobot

Network Source of Truth & Network Automation Platform
https://docs.nautobot.com
Apache License 2.0
1.02k stars 269 forks source link

Add the list of form field errors to top of form page #6260

Open joewesch opened 2 hours ago

joewesch commented 2 hours ago

As ...

Nelly - Network Engineer

I want ...

To see the list of form field errors at the top of the form page after hitting submit, not just under the respective field

So that ...

When I submit the form and it refreshes the page I can quickly determine that there was an issue with my inputs rather than needing to scroll down and find that there was an error

I know this is done when...

Optional - Feature groups this request pertains to.

Database Changes

None

External Dependencies

None

joewesch commented 2 hours ago

Use case:

In this use case, the page would refresh and be at the top of the page with seemingly no direct feedback to the user that there was a problem. If they scroll down and see the error on the field (depending on the size of the form it may not be readily apparent) they would finally see why the form did not work.

We currently already place non-field errors at the top of the page, so this change would just add better UX for when a field has an error as well.