Web Development Thread, Form with inputs changing depeding on whats selected. in Coding and Web Development; Does anybody know a way of setting up a form so that depending on what is selected on the first ...
-
18th May 2011, 02:28 PM #1 Form with inputs changing depeding on whats selected.
Does anybody know a way of setting up a form so that depending on what is selected on the first row the bottom parts change?
For example we are centralising Administration and would like a form which can at the top have Radio Buttons for Exams, Trips, Reprographics etc and depending on which ones is selected the form below will vary. So that the form relates to what is selected at the top.
I'm guessing something using Javascript?
-
-
IDG Tech News
-
18th May 2011, 03:54 PM #2 Personally i'd tab between the different forms.
Plus then you've already got the basics in place to start using jquery on your form data.
Matt
-
-
18th May 2011, 03:55 PM #3 
Originally Posted by
saundersmatt
Personally i'd
tab between the different forms.
Plus then you've already got the basics in place to start using jquery on your form data.
Matt
Thats a pretty good idea - hadn't thought of that!
Cheers probably easier! Cheers
-
-
18th May 2011, 03:58 PM #4 If you use WSS it does surveys with branching. We use it for options when the time comes for yr9 but would also work for your needs. Really easy to setup too.
-
-
18th May 2011, 04:01 PM #5 
Originally Posted by
glennda
Does anybody know a way of setting up a form so that depending on what is selected on the first row the bottom parts change?
Place the different sections of your form in DIV tags, then use an onselect trigger on the radio check boxes to run some javascript to hide/unhide the appropriate DIV.
-
-
18th May 2011, 04:46 PM #6 
Originally Posted by
Hightower
If you use WSS it does surveys with branching. We use it for options when the time comes for yr9 but would also work for your needs. Really easy to setup too.
Already got the whole intranet running using PHP mysql on my linux webservers.
@dhicks - i'll look into that Do you have any codes i can look at?
Toby
Last edited by glennda; 18th May 2011 at 04:52 PM.
-
-
8th June 2011, 10:32 AM #7 Hi,
I have just been working on a new website which required this.
I ended up using AJAX which is pretty simple once you get your head around it. I used a mix of php and javascript to have a form with 4 drop boxes each reliant on another e.g
----------
option 1 - limits option 2
----------
option 2 - limits option 3 and 4 but queries different sql tables
----------
option 3
----------
option 4
----------
-
SHARE:
Similar Threads
-
By edutech4schools in forum Office Software
Replies: 3
Last Post: 8th February 2011, 02:25 PM
-
By acrobson in forum Coding
Replies: 2
Last Post: 27th January 2010, 08:04 PM
-
By BJG in forum MIS Systems
Replies: 1
Last Post: 17th July 2009, 11:54 AM
-
By enjay in forum Hardware
Replies: 17
Last Post: 7th February 2008, 09:49 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules