I've come up with a very handy solution to this...
IF you use fusebox try this (I call it stacking):
<cfcase value="bugList">
<cfinclude template="act_deleteBugs.cfm">
<cfinclude template="../dsp_header.cfm">
<cfinclude template="qry_getBugs.cfm">
<cfinclude template="qry_getUsers.cfm">
<cfinclude template="dsp_BugList.cfm">
<cfinclude template="../dsp_footer.cfm">
</cfcase>
the ACT_DELETEBUGS.CFM template only runs if the form fields from
DSP_BUGLIST.CFM are defined (if the form has been submitted).
Inside the action fuse is where the form validation occurrs. At the end of
this fuse I check to see if an error occurred - relocate to the next step if
no errors, otherwise drop right on through where the form will appear again
populated with it's own values.
In DSP_BUGLIST.CFM you'll need to put an if statement to default the form
values for the first time through.
Works like a charm!
Bryan Love ACP
Internet Application Developer
[EMAIL PROTECTED]
-----Original Message-----
From: Adrian Cesana [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 11:47 AM
To: CF-Talk
Subject: Form Fields cleared on Back
Im going nuts trying to figure this one out, I have a form with about 110
fields (ya i know), there is lots of server side validation, if an input
error occurs I CFABORT and give the user a JavaScript back button to go back
an correct the input. On some users PC the form gets cleared on other PC's
it does not. I also use some of the CF built in validation (_required) so
the user has to use the browser back button, same thing happens on some of
these peoples browsers. Of coarse it does not happen on mine. I setup a
few test forms for the problems users and it things work ok. These users
are all using IE 5.x, any one else have such problems, could it be the large
number of INPUT fields? any browser settings? registry settings? Voodoo
dances? anything?
Thanks,Adrian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists