Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Controlling Complex Web Form
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Controlling Complex Web Form

 Post Reply Post Reply Page  123>
Author
Gary View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 March 2002
Location: United Kingdom
Status: Offline
Points: 326
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gary Quote  Post ReplyReply Direct Link To This Post Topic: Controlling Complex Web Form
    Posted: 30 June 2003 at 4:32am

I have a rather large progressive web form. That is to say that as the form progresses in status, more of the form becomes 'available'. I want to be able to control the form fields depending on the status as follows:

Status: <SELECT> list with <OPTION>'s such as Stage1, Stage2, Stage3 and Stage4 (always available)
If Stage1 is selected, then only the first part of the form is available - maybe form items 10-20. The rest of the form should be visible, but readonly)
x days later, the status is then changed (by user) to Stage2 at which point both the first (10-20 items) and second (21-32 items) are available. Again, the rest of the form visible, but readonly.
This then continues right through all the status levels.

I think that I could figure this out, but just wanted some input into how YOU would go about this in the easiest, most efficient way. Also, should I control the form with client-side Javascript or server-side asp ???

Any thoughts, ideas, recommodations would be much appreciated. Sample script or links would be even better.

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2003 at 7:42am
Use ASP and use the status to determine which parts are the form are active and store the data server side in a database.
Back to Top
Gary View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 March 2002
Location: United Kingdom
Status: Offline
Points: 326
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gary Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2003 at 7:51am

That is one possibility, but if the user changes the status, the page will need to be reloaded.
Before that happens, I will need to write any changes to the database (does the user want to commit changes???). 

Therefore, maybe Javascript would be better???

What I am after from this thread is a discussion on what you guys would do. Also, the pro's and con's of the various available options.

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2003 at 7:58am
The user could disable Javascript (and some do to avoid pop ups) and then your system fails completely. With a multiple step process, you shouldn't give the user any more control than necessary. They should step through the process and (maybe be able to step backwards) but after each step the data should be submitted back to the server. Rather than having status a a select box, I would include the status as button and disable the buttong if they are not applicable.
Back to Top
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2003 at 8:09am
I'd go with server-side, but you can do a hidden div with a message saying that the user needs to submit to commit the changes. Then change it with javascript, unhide the div, let the user commit it with a submit (or button that is javascripted), and then do everthing permanently on the back side  
Back to Top
Gary View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 March 2002
Location: United Kingdom
Status: Offline
Points: 326
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gary Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2003 at 8:15am

I forgot to mention, this is for an intranet web application which is going to be used by no more than 10 people.

The fact that i0t is internal means that we do not have to worry about JS being disabled.

Does that change your view on issue ???

Thx

Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2003 at 8:49am

My vote is for server side. Simply break the steps into separate pages and show what is applicable on that page. Store the current status in a database or file somewhere.

A rule of thumb I try to remember is to not cause the user to scroll down more than 1 page (for average resolution) for any pages on the site. There are exceptions of course, but this might help in your case.

Cheers,
Andrew

There have been many, many posts made throughout the world...
This was one of them.
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2003 at 9:00am

another vote for server-side, not only will it be a whole heck of a lot of coding in javascript (yick!), but it'll run slow on the browser checking that many fields

i don't use the reason "they might have javascript disabled".. if someone has that going on, half the sites on the net wouldn't work, lol

Contribute to the working anarchy we fondly call the Internet
Back to Top
 Post Reply Post Reply Page  123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.