I'm improving on Smarter forms so that instead of having to hard code every field into 
the code that checks for errors, it automaticly reads the dictionary that is in 
REQUEST and checks every key in it.  I'm trying to work with this...

<dtml-call "REQUEST.set('finished','true')">
        <dtml-in "REQUEST.keys()">   
<dtml-comment> starting the loop </dtml-comment>
        <dtml-if "_[sequence-key].value('')">
<dtml-comment> I'm saying that if the current key is empty, display this. 
                <li>Please fill in your <dtml-var "_['sequence-key']"> below
                <dtml-call "REQUEST.set('finished','false')">

        <dtml-if "REQUEST.get('finished')=='true'">
                <p>You're done! Thanks for your input <dtml-var fname>.</p>
                <p>You could put a link to somewhere else on your site here...</p>
                Please correct this and click the <i>Next</i> button to complete
                the form.
                <dtml-var expr="mainform_include()">

any input would be helpful. 

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to