How to Pass Varibles on Multipage Form?
I'm working with a multipage survey (3 pages) and I'm trying to figure out how to pass the survey answers over the multiple pages. I tried to hard code "hidden" fields, but if someone dosen't answer a question, then a error page displays. \ Does anyone have a snippet of code that can auto generate hidden fields from page to page? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
How to Pass Varibles on Multipage Form?
In "ColdFusion mx bible", a solution for this is discussed using "CFCs" (ColdFusion Components), I love this way, and use this ... [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: How to Pass Varibles on Multipage Form?
Couldn't you just set them as session variables? -Original Message- From: Andrew Spear [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 5:37 PM To: CF-Talk Subject: Re:How to Pass Varibles on Multipage Form? Try something like this... value="#Evaluate(ii)#"> _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: How to Pass Varibles on Multipage Form?
Justin, Ben Forta wrote one. The link directly to it's location on MM Exchange can be found on his site, www.forta.com, in the ColdFusion|Custom Tags area. Cutter Justin Jefferson wrote: > I'm working with a multipage survey (3 pages) and I'm trying to figure > out how to pass the survey answers over the multiple pages. I tried > to hard code "hidden" fields, but if someone dosen't answer a > question, then a error page displays. > \ > Does anyone have a snippet of code that can auto generate hidden > fields from page to page? > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: How to Pass Varibles on Multipage Form?
Or do it via _javascript_. I'd personally do a multipage form as a wizard type of interface with hidden DIVs. But this depends on the nature of the form, your coding preferences/skills, and how much data to be processed... Shawn -Original Message- From: Robert Redpath [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 6:50 PM To: CF-Talk Subject: RE: How to Pass Varibles on Multipage Form? Couldn't you just set them as session variables? -Original Message- From: Andrew Spear [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 5:37 PM To: CF-Talk Subject: Re:How to Pass Varibles on Multipage Form? Try something like this... value="#Evaluate(ii)#"> _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: How to Pass Varibles on Multipage Form?
Shawn Grover wrote: > Or do it via _javascript_. I'd personally do a multipage form as > a wizard How can you pass variables from one page to another with _javascript_? - Regards, Bob Haroche O n P o i n t S o l u t i o n s www.OnPointSolutions.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: How to Pass Varibles on Multipage Form?
Work with the session scope, as soon as a page is submitted you append the FORM structure to a structure stored in the session, I have a CFC that does the trick if your interested. So basically upon each submit you append the all form values to a structure in the session scope, at the end you can copy every back to the FORM scope or just retrieve the data from the structure in the session. Taco Fleur Blog http://www.tacofleur.com/index/blog/ Methodology http://www.tacofleur.com/index/methodology/ 0421 851 786 Tell me and I will forget Show me and I will remember Teach me and I will learn -Original Message- From: Justin Jefferson [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 January 2004 7:28 AM To: CF-Talk Subject: How to Pass Varibles on Multipage Form? I'm working with a multipage survey (3 pages) and I'm trying to figure out how to pass the survey answers over the multiple pages. I tried to hard code "hidden" fields, but if someone dosen't answer a question, then a error page displays. \ Does anyone have a snippet of code that can auto generate hidden fields from page to page? _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: How to Pass Varibles on Multipage Form?
It would be better written like value="#form[variables.field]#"> Taco Fleur Blog http://www.tacofleur.com/index/blog/ Methodology http://www.tacofleur.com/index/methodology/ 0421 851 786 Tell me and I will forget Show me and I will remember Teach me and I will learn -Original Message- From: Andrew Spear [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 January 2004 8:37 AM To: CF-Talk Subject: Re:How to Pass Varibles on Multipage Form? Try something like this... value="#Evaluate(ii)#"> _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: How to Pass Varibles on Multipage Form?
I had to take few bits out that were specific to my app. I hope it still runs as it should. You should probably name "contactNew" structure more specific to your app. The structDelete(contactNew.form, "BTNSUBMIT"); stuff is just so I don't save buttons in the structure Its as simple as calling the following for the first time, i.e. you have not created the session structure yet. method="fnStore"> And the following to append, i.e. every submit after the the above method="fnAppend"> Should you want to copy everything back to the FORM scope you run the following method="fnReinitialize" returnvariable="form"> value="#session.contactNew.form#"> The CFC name="fnReinitialize" output="false" returntype="struct" displayname="Reinitialize" hint="reinitialize form values, i.e. copy form values back to the local scope"> required="true"> scope="session"> name="fnStore" output="false" displayname="Store" hint="store form values in session scope"> contactNew = structNew(); structInsert(contactNew, "form", arguments.formField); // delete any button data from the structure structDelete(contactNew.form, "BTNSUBMIT"); type="exclusive" scope="session"> duplicate(contactNew)> name="fnAppend" output="false" displayname="Append" hint="append form values to form in session scope"> type="exclusive" scope="session"> structAppend(session.contactNew.form, arguments.formField, "true"); // delete any button data from the structure structDelete(session.contactNew.form, "BTNSUBMIT"); Hope it helps PS. Any comments, new ideas, improvements welcome Taco Fleur Blog http://www.tacofleur.com/index/blog/ Methodology http://www.tacofleur.com/index/methodology/ 0421 851 786 Tell me and I will forget Show me and I will remember Teach me and I will learn > -Original Message- > From: Bob Haroche [mailto:[EMAIL PROTECTED] > Sent: Thursday, 29 January 2004 6:34 PM > To: Taco Fleur > Subject: Re: How to Pass Varibles on Multipage Form? > > > Hello Taco, > > > Work with the session scope, as soon as a page is submitted > you append > > the FORM structure to a structure stored in the session, I have a > > CFC that does > > the trick if your interested. > > > I'd love to get a copy of that CFC if you don't mind. Thank you in > advance. > > > - > Regards, > Bob Haroche > O n P o i n t S o l u t i o n s > www.OnPointSolutions.com > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: How to Pass Varibles on Multipage Form?
On Wednesday, January 28, 2004, at 04:28 PM, Justin Jefferson wrote: > I'm working with a multipage survey (3 pages) and I'm trying to figure > out how to pass the survey answers over the multiple pages. I highly recommend using the session scope as others have suggested. That way, users can back up and refresh, and their data is still preserved. Christian [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: How to Pass Varibles on Multipage Form?
I'm a bit late to this - but if you are looking for a packaged solution, I've got a custom tag called PLP (same name as the old spectra feature) that makes it a bit easier to work with N step forms. You can read more about it here: http://www.camdenfamily.com/morpheus/blog/index.cfm?mode=entry&entry=395FB53 7-009C-A8DB-7F53B930936AD58C [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: How to Pass Varibles on Multipage Form?
So just how trustworthy are CF Session vars in a clustered environment these days (as they have a history of getting lost/not sticking)?? I've always wriiten my own custom session handling, but it can get a tad laborious (like in the case of multipage forms). So I figured I'd see if things have truly gotten any better with CFMX 6.1 Cheers Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder & Director www.cfug-vancouverisland.com - Original Message - From: Christian Cantrell To: CF-Talk Sent: Thursday, January 29, 2004 7:29 AM Subject: Re: How to Pass Varibles on Multipage Form? On Wednesday, January 28, 2004, at 04:28 PM, Justin Jefferson wrote: > I'm working with a multipage survey (3 pages) and I'm trying to figure > out how to pass the survey answers over the multiple pages. I highly recommend using the session scope as others have suggested. That way, users can back up and refresh, and their data is still preserved. Christian [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: How to Pass Varibles on Multipage Form?
On Thu, 29 Jan 2004 08:12:31 -0800, in cf-talk you wrote: >So just how trustworthy are CF Session vars in a clustered environment these days (as they have a history of getting lost/not sticking)?? They're not trustworthy in a clustered environment, but that's not what they're for. *Client* variables are best suited for clustered environments. Jamie [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: How to Pass Varibles on Multipage Form?
> So just how trustworthy are CF Session vars in a clustered > environment these days (as they have a history of getting > lost/not sticking)?? They work perfectly well if your clustered servers use "sticky" sessions, so that each user is always redirected to the server that handled her first request. They seem to work reliably enough using JRun's "buddy list" session sharing, if you've enabled J2EE sessions, although I haven't tested to see how well that works under load yet. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]