Jeffrey
- A bit embarrassing really - I was setting a flag which named the template
that had been called (via the image button value)... forgot that the first
time the form starts up, there's no button clicked so no flag set. Therefore
(and I should have noticed this earlier), the invisible fields were all
present... thus chuffing the javascript.
Ryan
Unfortunately I can't give you any of my code but I can explain what I've
done, it's quite simple really.
Throughout the forms, the fuseaction stays the same but 5 of the form fields
(the image buttons) have values which determine which form is displayed. In
the app_locals template, all form fields are set with CFParam and therefore
in the form each field value is set to #Application.Fieldname#.
When one of the image button flags is found, the correct template is shown
and all the form fields from the other 4 form parts are set as hidden
fields. So basically:
<CFIF Attributes.RequestedForm NEQ "FormPart1">
<INPUT
TYPE="HIDDEN"
NAME="Form1Field1"
VALUE="<CFOUTPUT>#Attributes.Form1Field1#</CFOUTPUT>">
<INPUT ...
</CFIF>
Subject to validation (client side and server side), when each form has been
submitted, another flag is set: FormXDone="True"
when all of these are true another button is displayed which has
NAME="Finish". Users can still jump back and forth through the form via the
other 5 image buttons so that they can check/amend details before the final
submit.
Anyway, that's enough of my waffling... Im quite happy with the way this
form works, but Im sure somebody will tell me there's a better way or pick
some hole in it somewhere.
Cheers
Taz
---
Technical Web Developer
Orchard Design - www.orchard-design.co.uk
Email: [EMAIL PROTECTED]
ICQ: 38478683
Tel. +44 (0) 191 516 6183
Fax +44 (0) 191 516 6184
Mb. +44 (0) 7944 774 349
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.