Hi Ed,

I asked a similar question a couple of months back, and had 1 vague reply...

I'm not sure what the """correct""" way of doing it is, but what I do is to
set a variable attributes.validated in my act file, and in myy url file I
redirect normally if attributes.validated = 1, otherwise I set
attributes.displayAction to attributes, and cfinclude my dsp_form file.
(attributes.displayAction is passed to the cf_reuseform custom tag)

HTH

Any problems let me know (or if anyone thinks this is not the best way of
soing it, i'd be interested too...)

cheers

Dan

-----Original Message-----
From: Ed Ortega [mailto:[EMAIL PROTECTED]]
Sent: 12 January 2001 02:51
To: Fusebox
Subject: Form Validation cf_reuseform


I just started coding an application using fusebox and so far, I'm loving
it. One thing has snagged me up however...

I have one fuse that displays a form and another that validates and updates
the DB. I'm using cf_reuseform in the form fuse and it works great... except
when it comes time to validate the form.

The form validation fuse takes in the form values (including a hidden field
that is essentially a list of required fields) and checks for their
existence among other things. Validating the form is no problem, it's
getting back to the form with the correct values in place that I'm having
problems doing.

I'd like for the user to be sent back to the form with the correctly entered
form values in place and an error at the top of the page describing the
problem (or at least the first problem) that occurred.

Perhaps this is my inexperience with ColdFusion talking, but it seems like
there should be a relatively easy way to do this. (The fusebox book glosses
over it fairly quickly). I'm not sure how to encode the correct variables
back into FORM or URL variables.

Thanks for the help,

Ed


-- 

Ed Ortega
[EMAIL PROTECTED]
F I R E P L U G   L A B S   S F

870 Market Street Suite 1001
San Francisco CA 94102

TEL 415 837 1135
FAX 415 837 1174
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to