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

Front end validation decision/implementation #182

Open
aarongundel opened this issue Jan 14, 2025 · 1 comment
Open

Front end validation decision/implementation #182

aarongundel opened this issue Jan 14, 2025 · 1 comment
Assignees

Comments

@aarongundel
Copy link
Collaborator

Are we using front end validation with vue? If yes, what does that look like?

@jacobtylerwalls
Copy link
Member

Some thoughts:

  • the primevue input components take some props like invalid that we could set if required
  • knowledge of required nodes, widget labels, default values, placeholders etc could be gotten from OPTIONS request to serializer
  • we could show per-field errors from the serializer in line with the form fields instead of just all together in the error toast (error toast currently just says "Bad Request" but the network tab shows the per-field errors the frontend could consume

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

No branches or pull requests

3 participants