[Zope] Checkboxes in dtml and external methods

Phil Harris phil@media-1.ml.uwcm.ac.uk
Tue, 20 Apr 1999 14:00:13 +0100


Thanks all,

Karl's suggestion worked.

I had already tried the ':list' trick but had forgotten to give them any
values, ;)

Thanks for the help

----- Original Message -----
From: Karl & Mel <llwo@dbtech.net>
To: <phd@sun.med.ru>; Zope Mailing List <zope@zope.org>
Sent: Tuesday, April 20, 1999 1:00 PM
Subject: Re: [Zope] Checkboxes in dtml and external methods


>
> ----- Original Message -----
> From: Oleg Broytmann <phd@sun.med.ru>
> > On Tue, 20 Apr 1999, Rob Page wrote:
> > > > <form action="receiver" method=post>
> > > > <input type=checkbox name=cb>option 1
> > > > <input type=checkbox name=cb>option 2
> > > > <input type=checkbox name=cb>option 3
> > > > <input type=checkbox name=cb>option 4
> > > > <input type=checkbox name=cb>option 5
> > > >
> > > > <input type=submit name=ok value=ok>
> > > > </form>
> > > >
> > > Hmm. I think your're after the behavior of a multiple select LIST
(i.e.,
> > > SELECT) with the UI of a checkbox.  I don't think that will work.  If
> > > you're really after the select use that.  Otherwise I think you'll
have
> > > to change the name of each checkbox input widget to get visibility of
> > > each on individually on the ACTION document.
> > >
> > > --Rob
> >
> >    Or you can give different values:
> >
> > <input type=checkbox name=cb value=2>option 2
> > <input type=checkbox name=cb value=3>option 3
> > <input type=checkbox name=cb value=4>option 4
> >
> > Oleg.
>
> Close Oleg but I think this is the way it needs to be.
>
> <input type=checkbox name="cb:list" value=2>option 2
> <input type=checkbox name="cb:list" value=3>option 3
> <input type=checkbox name="cb:list" value=4>option 4
>
> The ":list" after the name tells Zope to pass the values as a list.
> Otherwise you would need to give each it's own name.
>
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )