We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provided plone.formwidget.autocomplete.widget.AutocompleteMultiFieldWidget does fail to validate required field.
plone.formwidget.autocomplete.widget.AutocompleteMultiFieldWidget
I wanted to create a RelationList field with at least one related item. Possible the easiest way to reproduce is to:
plone.app.relationfield.behavior.IRelatedItems
plone.app.relationfield.behavior.py
relatedItems
required=True
AutocompleteMultiFieldWidget
plone.autoform.directives
What happens: It is possible to create a new "dummy" content with no related items at all.
Expected behavior: Not be able to create "dummy" unless there is at least one related items set.
Note: Maybe the problem is much deeper, since I'm able to create the "dummy" without step 2. I'm also not getting validation error if I go TTW:
The text was updated successfully, but these errors were encountered:
Note 2: I do now about the min_length for (Relation)List fields providing IMinMaxLength.
min_length
IMinMaxLength
Maybe it is my logic which works the opposite, but I think:
[]
required=False
min_length=3
None
Sorry, something went wrong.
No branches or pull requests
Provided
plone.formwidget.autocomplete.widget.AutocompleteMultiFieldWidget
does fail to validate required field.I wanted to create a RelationList field with at least one related item. Possible the easiest way to reproduce is to:
plone.app.relationfield.behavior.IRelatedItems
behavior enabled.plone.app.relationfield.behavior.py
and:relatedItems
field torequired=True
AutocompleteMultiFieldWidget
in the schema torelatedItems
field withplone.autoform.directives
What happens:
It is possible to create a new "dummy" content with no related items at all.
Expected behavior:
Not be able to create "dummy" unless there is at least one related items set.
Note:
Maybe the problem is much deeper, since I'm able to create the "dummy" without step 2. I'm also not getting validation error if I go TTW:
The text was updated successfully, but these errors were encountered: