kirschbaum-development / nova-inline-select

An inline select field for Nova apps
MIT License
92 stars 21 forks source link

Request failed with status code 422 #56

Closed DODMax closed 2 years ago

DODMax commented 2 years ago

I have an InlineSelect on an index that is displayed on the details screen of a resource (so the inline select is on a relationship) and I get a code 422 when submitting. image

Nova v4.18.2

DODMax commented 2 years ago

Turns out any field required needs to have ->updateRules('sometimes') as already mentioned in the doc here.

If you're like me make sure to inspect the XHR response in dev tools to see which fields might be causing the issue.