Hi Roger,

thanks for your fast reply.

However: if I change invitation to be required,

  invitation = Bool(
          title=u'Invitation',
          description=u'Invitation?',
          required=True
          )

I still get two checkboxes for invitation:

   [ ] yes [ ] no

Is there a way to have only one checkbox generated? - like this:

   [ ] Invitation

That's what I want.

-Andreas


On Sun, Sep 02, 2007 at 12:26:22AM +0200, Roger Ineichen wrote:
> Hi Andreas
>  
> > An: zope3-users@zope.org
> > Betreff: [Zope3-Users] z3c.form, checkboxes for Bool fields
> > 
> > In my interface I have Bool fields, say e. g. for invitation
> > 
> >   class IAdr(Interface)
> >     ...
> >     invitation = Bool(
> >         title=u'Invitation',
> >         description=u'Invitation?',
> >         required=False
> >         )
> >      ...
> 
> [...]
> 
> > However I get *two* checkboxes now
> > 
> >   [ ] yes [ ] no
> 
> This is correct, because you need to select None as value 
> like defined in the schema (required=False). De-select
> both checkboxes should set None as value. But I'm not
> sure if we implemented this.
> 
> Regards
> Roger Ineichen
> _____________________________
> END OF MESSAGE
> 
> 
> 
> !DSPAM:46d9f45459231571618569!
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to