[Zope3-Users] Required choice without default value in formlib
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Mar 8 13:46:12 EST 2007
On Friday 12 January 2007 05:02, Thierry Florac wrote:
> I use formlib to handle my forms.
> In a AddForm, how can I have a required choice property, using a dynamic
> vocabulary, without a default selected value ?
You would have to write your own widget that displays a blank value by
default. If the blank value is not changed by the user to a real value, then
the widget throws an error during validation.
I think by mapping the blank value to the missing value willdo the trick, so
the custom widget would be a simple extension to the existing one.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-users
mailing list