[Zope] Hidden field with a list type

Jim Fulton jim@digicool.com
Tue, 10 Aug 1999 09:09:47 -0400


Paul Chung Chee Soong wrote:
> 
> Hi Zopians. My problem is how can I make a hidden field to be a list with
> a default value? For instance, I try to make the following.
> 
> REQUEST.form['pno'] contains ['abc', 'def', 'ghi']
> 
> <snip>
> <input type=hidden name="pno:list" value="<!--#var
> "REQUEST.form['pno']"-->">
> 
> When I submit the above page, and try to refer to pno, it doesn't produce
> the result I want. For example:
> 
> <snip>
> <!--#in "REQUEST.form['pno']"-->
>    <!--#var sequence-item--><BR>
> <!--#/in-->

You want:

 <!--#in "REQUEST.form['pno']"-->
  <input type=hidden name="pno:list"
         value="<!--#var sequence-item-->">
 <!--#/in-->

Jim

--
Jim Fulton           mailto:jim@digicool.com   Python Powered!        
Technical Director   (888) 344-4332            http://www.python.org  
Digital Creations    http://www.digicool.com   http://www.zope.org    

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.