-
When a form field is optional, and the user do not fill it, the form still contains the field but it's an empty string. If the model has |
Beta Was this translation helpful? Give feedback.
Answered by
ellmetha
Feb 24, 2024
Replies: 1 comment 1 reply
-
Why set |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ellmetha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why set
blank: false
on your model if the corresponding field in the schema is optional? Your model field should haveblank: true
set in order to make this validation work as expected since it appears to be optional.