orchidsoftware / platform

Orchid is a @laravel package that allows for rapid application development of back-office applications, admin/user panels, and dashboards.
https://orchid.software
MIT License
4.26k stars 631 forks source link

Client-side validation on multi-tab layout #2676

Closed johnnuman closed 10 months ago

johnnuman commented 11 months ago

Discussed in https://github.com/orgs/orchidsoftware/discussions/2675

Originally posted by **johnnuman** July 20, 2023 On a complex screen layout with multiple tabs, if the user tries to submit the data, it shows a validation error as expected and highlights all the fields with validation error as expected. But if the fields failing the validation are on a different tab than the active one, there is no indication for the user to know why the submit is failing. Even if the user switches to other tabs, there is no indication of failing fields until he clicks the submit again. Is this by design? Is there a way to improve this experience?
tabuna commented 11 months ago

Hi. I don't do client-side validation, except built into the browser. When you create a large page and want to visually divide it into tabs, I recommend TabMenu https://orchid.software/en/docs/custom-template/#tabmenu