Dave

I had the same problem when using Fusebox early on.
The solution recommended to me and which I now use is to include the form
file in the same fuseaction as the validation, if the validation has failed.
This way the FORM scope is still available.
Check out the example below.

If you want to explore this any more feel free to email me direct
[EMAIL PROTECTED]

Good Luck

Tim Price
Paceway Solutions Ltd (UK)
07966 233128


<cf_bodycontent>
<cfswitch expression="#attributes.fuseAction#">

        <cfcase value="list">
                <cfinclude template="dsp_listCodeTypes.cfm">
        </cfcase>

        <cfcase value="edit">
                <cfset valErrList="">
                <cfinclude template="frm_codeType.cfm">
        </cfcase>

        <cfcase value="save">
                <cfinclude template="act_valCodeType.cfm">
                <cfif len(valErrList) GT 0>
                        <cfset attributes.displayAction="Form">
                        <cfinclude template="frm_codeType.cfm">
                <cfelse>
                        <cfinclude template="act_updateCodeType.cfm">
                        <cflocation url="index.cfm?fuseaction=list&#request.urltoken#">
                </cfif>
        </cfcase>
</cfswitch>
</cf_bodyContent>

-----Original Message-----
From: Dave Phipps [mailto:[EMAIL PROTECTED]]
Sent: 04 May 2001 13:04
To: Fusebox
Subject: CF_REUSEFORM problem


Hi,

I am new to Fusebox and I am trying to create a form which makes use of the
<CF_REUSEFORM> tag.  So far I have managed to create the form which then
passes to the act page and if filled in correctly it inserts the fields
into the db table.  The problem comes when the form is not filled in
correctly.  What do I put in the act_*.cfm page so that if the form is not
correctly filled it passes back to the dsp_form.cfm page and the tag
pre-fills the form.  All I get at the moment is "form.* cannot be found"
errors.

Sorry, if this sounds confused, but I am!!


Thanks in advance

Dave Phipps
============================================
Dave Phipps - Web Applications Developer (CF)
Oxford, Oxfordshire.
Telephone: +44(0)7740 181784
http://www.phipps-cf.co.uk
============================================
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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