if all you are trying to do is display a multi-part/multi-step form,
then i have found this post by Ben Nadel very helpful and easy to implement:
http://www.bennadel.com/blog/1265-Multi-Step-Form-Demo-In-ColdFusion.htm

does require quiet a bit of code, but works like a charm when done...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Pranathi Reddy wrote:
> <cfform>
>
> This is qn.1
>
> <cfloop from="1" to='4' index='i'>
>
> <cfinput type="radio" name="radio1" value="a#i#" >
>
> </cfloop>
>
> This is qn.2
>
> <cfloop from="1" to='4' index='i'>
>
> <cfinput type="radio" name="radio2" value="b#i#" >
>
> </cfloop>
>
> This is qn.3
>
> <cfloop from="1" to='4' index='i'>
>
> <cfinput type="radio" name="radio3" value="c#i#" >
>
> </cfloop>
>
> <cfinput type="submit" value="submit" name="Submit">
>
> </cfform>
>
> <cfif isDefined('form.Submit')>
>
> <cfstoredproc procedure="csp_ONF_GetAnswers" datasource="Platform" >
>
> <cfprocparam cfsqltype="CF_SQL_INTEGER" value="#radio1#" type="in">
>
> <cfprocparam cfsqltype="CF_SQL_INTEGER" value="#radio2#" type="in">
>
> <cfprocparam cfsqltype="CF_SQL_INTEGER" value="#radio3#" type="in">
>
> <cfprocresult name="Answer_Data">
>
> <cfif Answer_Data.Answer gt 2>
>
> <cflocation url="page3.cfm">
>
> <cfelse>
>
> <cflocation url="page4.cfm">
>
> </cfif>
>
> </cfif>
> This is what is my form. And I need to display the steps on what page the
> user is in and how many steps are left over to complete the feed back. I
> totally have 4 pages but I need to display on 3 pages. It is displaying 4
> steps and If I take one page name off from the page list it is displaying 3
> steps but if the user visiting the page.. it is not displaying the page
> highlited.
> eg:
> if I mentione <cfset pagelist="page1,page2,page3">
> then if the conditions is false then it should go for page4 but it is not
> rendering the steps. but it is displating 3 steps. if I add 4 pagenames then
> total steps are 4 but it highkights the page in which user is using.
> Actual steps should be 3 not 4.
>   
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319981
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to