So to recap my request. I have over 300 form values on the
form page. On the Form Process page - I wish to spit back
out ONLY those that have a value in the qty field of 0 or
better.
Rather than looping over the Form structure, you might find it easier to
manage if you pass an additional
cant u just wrap this around what u have here?
CFLOOP COLLECTION=#form# ITEM=myfield
cfif itemqty GT 0
#variables.myfield# : #form[myfield]#
/cfif
/CFLOOP
- Original
Javascript can work miracles here...
use JS to populate a hidden form field on submit.
function checkQty( theForm ){
// check all QUANTITY fields
for( k=0; ktheForm.elements.length; k++ ){
if( fieldName.indexOf(quantity) = 0 ){
fieldValue = 0
Thanks - already using javascript - any time anyone enters a quantity in any quantity
field - it updates an order summary. - I could just parse out an the
1 variable - #OrderSummary# - it holds it's formating in the cfmail - but was not easy
to work with in the .cfm page display.. .Thanks to
4 matches
Mail list logo