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
If we have model hasOne field , then in form it shows red asterisk near dropdown/lookup field in case required => true is set in model field.
BUT dropdown still contains empty value option in it.
I think empty value option should not be there if field is required, then we should force to fill it already in Form. Otherwise if it's left blank in Form and you try to save it will throw big, red exception.
And another related, but opposite issue.
If model field is defined like this
Then in Form it shows dropdown/lookup field, but there is no empty option in there. Model field is not set as required, so empty option should be available in dropdown. Asterisk do not show too (which is correct).
The text was updated successfully, but these errors were encountered:
In general, we want to allow field to be unset even if not nullable/required. This is important for UX when user does not have data ATM and simply does not want to select anything. Like when field is required and can be emptied...
If we have model
hasOne
field , then in form it shows red asterisk near dropdown/lookup field in caserequired => true
is set in model field.BUT dropdown still contains empty value option in it.
I think empty value option should not be there if field is required, then we should force to fill it already in Form. Otherwise if it's left blank in Form and you try to save it will throw big, red exception.
And another related, but opposite issue.
If model field is defined like this
Then in Form it shows dropdown/lookup field, but there is no empty option in there. Model field is not set as required, so empty option should be available in dropdown. Asterisk do not show too (which is correct).
The text was updated successfully, but these errors were encountered: