I have an app with multiple form pages.  The user has a number of ways of
moving through the pages.

1.  Each form has a submit button.  When it is clicked, the form does
validation then passes them on to the action page, which autoredirects them
to the next page.  No problem ... works great.

2.  There is a "toolbar" at the top of the page with each a link to each
page (except the one they are on).

Here's the rub... if the user is on page 1 and clicks on page 3, the system
is supposed to first validate page 1, then pass them on to page 3.

I've created a form element called "GoToPage" on the form.  What I need to
do when the user clicks a LINK from the toolbar is

a) update the value of the GoToPage element
b) submit the form, first calling the validation script.

On my action page, I am checking the value of the GoToPage field.  If it
isn't zero, it redirects them to whatever page is in the formfield.

My problem?  I'm not doing this right.

Here is the link...<A HREF="#" onclick="document.MyFormName.GOTOPAGE.value =
'pagethree';return validateform(this);">Page 1</A>

The form isn't being submitted.

Thanks,

Cheryl

-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: "Cheryl Hill" <[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)

Reply via email to