[Zope] ZSQL method variables in a forms select statement - how?

Bruce Elrick belrick@home.com
Wed, 06 Oct 1999 09:12:15 -0600


I think you want:
<select name="myval">
 <dtml-in select_vals>
  <option value="<dtml-var val1>"><dtml-var val2></option>
 </dtml-in>
</select>

where val2 is the one that gets displayed in the select list and val1 is the
one that actually gets associated with myval when the form is submitted.

Sture Lygren wrote:
> 
> Hi!
> 
> My apologies for asking an already answered question?
> 
> I've made a form wich has a <select><option> field.
> The <option></option> part gets its data from a zsql method (first of
> two
> variables). My problem is - how can I have the other variable to be the
> one that gets assosiated with the 'name' field in <select>?
> 
> Thanks in advance

--
Bruce Elrick, Ph.D.                       Saltus Technology Consulting Group
Cell:     (403) 870-4429
Personal: belrick@home.com                          IBM Certified Specialist
Business: belrick@saltus.ab.ca          ADSM, AIX Support, RS/6000 SP, HACMP