[Zope] Pass non-checkboxes globally
McDonnell, Larry
lmcdonnell@protonenergy.com
Wed, 13 Nov 2002 10:10:52 -0500
Hi,
I have a form with several checkboxes and after the user hits submit my form
action goes to a processing form. In this form I need to verify which
"checkboxes" are checked and perform an action.
<dtml-if expr="use_as_is=='checkbox'">
<dtml-call "REQUEST.set('titleid', 'System Product Manager')">
<dtml-in lookup_product_query>
<dtml-in lookup_product_id_query>
<dtml-in lookup_empid_query>
<dtml-call "REQUEST.SESSION.set('email', email)">
</dtml-in>
</dtml-in>
</dtml-in>
</dtml-if>
If I do not check "use_as_is" checkbox I will see this error:
Error Type: NameError
Error Value: global name 'use_as_is' is not defined
If checked it will go the the next <dtml-if> statement and error out.
If the boxes are not checked I see an error is there any way to trap or
define an uncheck checkbox so Zope does not error.
The input form has the checkboxes set in this manner:
<input type="checkbox" name="use_as_is" value="checkbox">
Thanks.
Larry McDonnell
Proton Energy Systems
10 Technology Drive
Wallingford, CT 06492
(203) 678-2181
Email:lmcdonnell@protonenergy.com
www.protonenergy.com