infocusweb
Technical User
Hi Folks - How do I output the number of form fields submitted as well as the form field values? Thanks in advance.
http//
http//
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#ListLen(FORM.fieldnames)#
<cfset fieldcount = 0>
<cfloop list="#FORM.fieldnames#" index="i">
<cfset current_field = "FORM." & #i#>
<cfset current_value = Evaluate(#current_field#)>
<cfif Len(#current_value#)>
<cfset fieldcount = fieldcount + 1>
</cfif>
</cfloop>
<br>
<cfoutput>#fieldcount#</cfoutput>