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
im very new in Orchid but cant find any proper documentation on how to show validation errors for the modals.
for example i have a field and some regexp (or other custom validation way) need to be implemented before the form actually send data.
how to achieve this ? any hooks to show $request->validate errors ?
sure i can use Toast or Alert but form will be submitted and closed and user will need to fill it again ...
id like to have any way
a behavior to send modal form data to the server, validate it there BEFORE closing the modal and in case of error returned highlight fields with errors and show error message under them (or smth like this)
a way to send validation rules and error messages to the front end and JS will validate and show errors BEFORE sending anything to the server
may be exists smth like this and i just dont know how to use or cant find in docs how to validate modals and show errors without loosing entered data :\
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
-
im very new in Orchid but cant find any proper documentation on how to show validation errors for the modals.
for example i have a field and some regexp (or other custom validation way) need to be implemented before the form actually send data.
how to achieve this ? any hooks to show
$request->validate
errors ?sure i can use Toast or Alert but form will be submitted and closed and user will need to fill it again ...
id like to have any way
Beta Was this translation helpful? Give feedback.
All reactions