Empty Selector widget not validated
The Selector widget (when rendered as SELECT) is not validated if its data source is empty.
In this case, it is rendered without any OPTION tag and is not included in FORM submission.
An hidden INPUT may be added to provide a default value.
#6 Updated by Davide Principi over 5 years ago
- Status changed from MODIFIED to CLOSED
- % Done changed from 60 to 100
- Resolution set to NOTABUG
The requested behaviour is not always desirable; anyway it can be easily implemented by adding an
Hidden widget to the form, before the
Moreover the validation error message is application specific. A generic error message saying "that value is not in the empty set" is not descriptive of the error.
See Enhancement #2890