Check if the name of the checkbox exists in the REQUEST namespace in the form processor... <dtml-if "REQUEST.has_key('use_as_is')"> or else you can name all your checkboxes in the form: name_of_checkboxes:list and zope will return a list to your form processor where you can check if the desired value (which should be unique for each checkbox) is in the list or not. hth AM McDonnell, Larry wrote:
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
_______________________________________________ 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 )
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================