You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the PrimeVue forms library, but I don't know how to incorporate server-side validation. I know there is an emphasis on client-side validation, but sometimes error messages must come from the server. For example, some websites are set up so that when you change your password, you're not allowed to change it to one that you've used recently.
My question is: when client-side validation passes, so you submit the form to the server, but then the server says that one or more of the fields have errors, how should I get those fields' errors to display to the user?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to use the PrimeVue forms library, but I don't know how to incorporate server-side validation. I know there is an emphasis on client-side validation, but sometimes error messages must come from the server. For example, some websites are set up so that when you change your password, you're not allowed to change it to one that you've used recently.
My question is: when client-side validation passes, so you submit the form to the server, but then the server says that one or more of the fields have errors, how should I get those fields' errors to display to the user?
Beta Was this translation helpful? Give feedback.
All reactions