Thanks! This helps.
RE:
<cfoutput>
<cfloop list="form.fieldnames" index="field">
<cfif field NEQ "fieldnames"><!--- don't want to double these up --->
<input type="hidden" name="#field#" value="#form[field]#">
</cfif>
</cfloop>
</cfoutput>.
There appears to be one other exception. I also have to account for the
fields that exist on the current form. In otherwords, If I start on step 1,
got to step 3, then come back to step 1, fieldnames = <all form fields on
form 3> & <all fields on form 1>. So when looping through, I'll need to
maintain a list of the fields on the current form. Otherwise I'd get
duplicate form fields.
I wonder if it's possible to do the entire thing in a JS + CF combination at
the end of the form and dynically create hidden form fields? This would
eliminate any need to hard code the names of the fields on the current form.
RE: I'd skip the hidden form fields, and after each step store the data in a
struct in the session scope.
So would an input field look like so <input name="firstname"
value="#session.formdata.firstname#"> ?
Or is there some sort of mapping that goes on?
It seems with this approach, you'd still need to know up front all the
fields on the form to initialize the struct. Or am I missing something?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4