FilamentF
Filament10mo ago
-Ni3K-

Action form, validate data from API

Hello everyone.

I use Action as forms, and I would like to check some condition via an API call first before the form submits and reset form. Essentially the form will try to submit, I make an API call to see if the form data is viable and throw a validation error if it isn't based on the API response.

Normally, I would let the request submit and then fail if it doesn't pass the validation. But this is a very big form, and having to redo the whole thing might not be great for the user.

I have checking the documents, but I haven't found anything on this topic. Any help is much appreciated!
Was this page helpful?