[Zope] problem with selection list in ZClass's addForm

Kevin Dangoor kid@kendermedia.com
Sun, 6 Feb 2000 11:16:26 -0500


----- Original Message -----
From: "Darran Edmundson" <Darran.Edmundson@anu.edu.au>
To: "zope" <zope@zope.org>
Sent: Sunday, February 06, 2000 9:45 AM
Subject: [Zope] problem with selection list in ZClass's addForm


> My problem is that the user's choice is not getting set
> properly by the class's constructor.  The following is
> the relevent snippet from my addForm:
>
>  <SELECT NAME="Degree"><dtml-in DegreeTypes>
>     <OPTION VALUE="<dtml-var sequence-index>"><dtml-var
> sequence-item></OPTION>
>  </dtml-in></SELECT>

The way I've done this, which I think is similar to how Zope's propertysheet
stuff does it is like this:

<option value="<dtml-var sequence-index>"<dtml-if "Degree ==
_['sequence-index']"> selected</dtml-if>>

Everything else you've got is the same... just change that option tag...

Kevin