Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
DFR #1
CFloop through Form results
I'm trying to set a value of 1 or 0 if any Radio on a form submission (loop) is
labeled 'OutofService'. The form is looped by Radio_ID. The following works
only if the last item is marked 'OutofService'. Any help would be appreciated.
Thanks,
Al
<cfloop index="i" from="1" to="#ListLen(form.Radio_ID)#">
<cfif ListGetAt(form.Status,i) EQ 'OutofService'>
<cfset status = '0'><cfelse><cfset status = '1'></cfif></cfloop>
DFR Guest
-
PDF form results
I am creating a PDF in which a user to our site can fill out online and then somehow I would like them to submit that pdf with the filled out... -
Reference Form Fields in CFLOOP
Ok, I admit...up until yesterday I had only heard of ColdFusion and never used it. But my boss gave me an assignment due tomorrow and I'm... -
Incorrect results in <cfloop>
Hi, I have 4 different dropdown of courses with courseID together with its data, PlayDate. Let say I have selected course 1, 2, 3 4 but when I... -
CFLOOP & Form input
Try looping through the GetJobs query like this: <cfloop from="1" to="#GetJobs.recordcount#" index="i"> <!---To read the data in GetJobs... -
Form Results Page
Okay, I used Publisher to create my form and have it emailed to me, and it works great. What I want to know is... how do I get the form results... -
jdeline #2
Re: CFloop through Form results
The contents of "status" is overwritten each time the loop is trabersed. Only the last pass of the loop survives this thrashing. :-)
jdeline Guest
-
Kronin555 #3
Re: CFloop through Form results
<cfset status = '1'>
<cfloop...>
<cfif ListGetAt(form.Status,i) EQ 'OutofService' and status eq '1'>
<cfset status = '0'>
</cfif>
</cfloop>
Kronin555 Guest



Reply With Quote

