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 currently have a field that allows you to select multiple items from another model (O2M relation).
Is there a way to add validation so the user can't save an empty selection? I want to ensure that the list has at least one item
Removing the last item should return an error on save
The field doesn't have a setting to control null values, and item validation doesn't work. I couldn't find any info on the docs or online. Help would be appreciated
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
Uh oh!
There was an error while loading. Please reload this page.
-
I currently have a field that allows you to select multiple items from another model (O2M relation).
Is there a way to add validation so the user can't save an empty selection? I want to ensure that the list has at least one item
Removing the last item should return an error on save

The field doesn't have a setting to control null values, and item validation doesn't work. I couldn't find any info on the docs or online. Help would be appreciated
Beta Was this translation helpful? Give feedback.
All reactions