Hi

 

I am building an online application form and the last page testes for which
fields across the multi pages of the application form

 

As the application form allows for multiple applicants some of the mandatory
fields only need to be checked dependant on whether there are more than one
applicant entered into the form

 

Each page of the application form captures the data entered and saves the
data into session variables to allow for the values entered across the
application form to remain present as the applicant moves through the
various pages of the application form .

 

If there is a second applicant loaded then session variables relating to the
seconds applicants data are defined

 

eg session.applicant2_firstname, session.applicant2_familyname

 

One the last page I test form mandatory fields with code similar to

 

<cfif

 

<cfloop index=-"i" from 1 to #total_applicants#>

session.applicant#i#_firstname eq '' or session.applicant#i#_familyname eq
''</cfloop> 

 

or #loan_amount# eq ''>

 

mandatory fields are missing

 

</cfif>

 

I need to be abel to perform a cfloop within the cfif statement so that the
mandatory fields relating to the 2nd. 3rd or 4th applicants are only tested
for when the value for total_applicants is 2,3 or 4

 

I trust the above makes sense

 

I look forward to your suggestion to achieve the above 

 

 

 

 

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.

Reply via email to