[Zope] HTML Selected not working
Farrell, Troy
troy.farrell@wcg.com
Wed, 18 Jul 2001 13:09:26 -0500
You can't use dtml inside dtml.
You probably mean:
<td>
<select name="Type">
<option <dtml-if expr="_['Type'] == 'Call'">selected</dtml-if>>
Call
</option>
<option <dtml-if expr="_['Type'] == 'Meeting'">selected</dtml-if>>
Meeting
</option>
<option <dtml-if expr="_['Type'] == 'Letter'">selected</dtml-if>>
Letter
</option></select>
</td>
Troy
-----Original Message-----
From: Tim Considine [mailto:timc@bizdev.co.uk]
Sent: Wednesday, July 18, 2001 12:55 PM
To: zope@zope.org
Subject: [Zope] HTML Selected not working
I am trying to make a value from an SQL query the selected one from an
HTML option list. But the following doesn't work and I can't see why.
<td>
<select name="Type">
<option <dtml-if expr="'<dtml-var Type>'=='Call'">SELECTED</dtml-if>>
Call
<option <dtml-if expr="'Meeting'=='<dtml-varType>'">SELECTED</dtml-if>>
Meeting
<option <dtml-if expr="'<dtml-var Type>'=='Letter'">SELECTED</dtml-if>>
Letter
</option></select>
</td>
<td><select name="Priority">
<option <dtml-if expr="'<dtml-var Priority>'=='1'">SELECTED</dtml-if>>
1
<option <dtml-if expr="'<dtml-var Priority>'=='2'">SELECTED</dtml-if>>
2
</option></select>
</td>
Any thoughts ?
Tim Considine
Email : timc@bizdev.co.uk
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )