+ Post New Thread
Results 1 to 7 of 7
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 ...
  1. #1

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,816
    Thank Post
    272
    Thanked 1,138 Times in 1,034 Posts
    Rep Power
    350

    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?

  2. #2

    Join Date
    Jul 2005
    Location
    Rugby
    Posts
    432
    Thank Post
    17
    Thanked 66 Times in 61 Posts
    Rep Power
    35
    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

  3. #3

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,816
    Thank Post
    272
    Thanked 1,138 Times in 1,034 Posts
    Rep Power
    350
    Quote Originally Posted by saundersmatt View Post
    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

  4. #4

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    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.

  5. #5

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,647
    Thank Post
    1,256
    Thanked 781 Times in 678 Posts
    Rep Power
    236
    Quote Originally Posted by glennda View Post
    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.

  6. #6

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,816
    Thank Post
    272
    Thanked 1,138 Times in 1,034 Posts
    Rep Power
    350
    Quote Originally Posted by Hightower View Post
    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.

  7. #7
    JB_IT's Avatar
    Join Date
    Mar 2011
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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:
+ Post New Thread

Similar Threads

  1. [MS Office - 2003] publisher 2003 prints 4 pages when 1 is selected
    By edutech4schools in forum Office Software
    Replies: 3
    Last Post: 8th February 2011, 01:25 PM
  2. VBA Code to copy all form updates to one form
    By acrobson in forum Coding
    Replies: 2
    Last Post: 27th January 2010, 07:04 PM
  3. Serco Eportal - selected data set
    By BJG in forum MIS Systems
    Replies: 1
    Last Post: 17th July 2009, 11:54 AM
  4. Combining Audio Inputs
    By enjay in forum Hardware
    Replies: 17
    Last Post: 7th February 2008, 08: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
  •