List Drop Down Menu HELP

Discussion in 'HTML & Website Design' started by debsten, Oct 7, 2008.

  1. #1
    I am pretty sure this is an easy thing to do but having never done it before and searching for hours I am coming up blank.

    I have a form in a website, it is a secure booking form for an accommodation company. There are a whole lot of From Fields, radio buttons etc asking particular questions, ie name, cc number etc etc.

    Anyway one of the sections is Booking details. Currently it is set up with a drop down menu with list of properties for the user to select and than another drop down menu underneath for them to select room types. What I want to do is when the user selects a property the 2nd drop down menu will then come up with a list of available room types for that particular properties.

    So basically if user selects Property 1 from drop down menu 1, Drop Down menu 2 then shows the list of available Room types that correspond to that property. If they selected Property 2, Drop Down menu 2 would change to show the list of available room types that correspond to that property.

    Any help would be appreciated.

    Debbie
     
    debsten, Oct 7, 2008 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    They are called dynamic drop down boxes. It's a bit complicated because you need to use Javascript, but there are heaps of tutorials around.
     
    Cash Nebula, Oct 7, 2008 IP
  3. debsten

    debsten Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you so much, this is totally what I needed, just wasn't using the right wording in my searches.

    I have done this and it seems to be working fine, my next problem which hopefully is another relatively easy one. Is it possible to also link a pop up screen to the drop down menu.

    ie. the first drop down lists all the property locations, which now when a particular property is selected populates the 2nd drop down with location types. What I want to do if possible is that when the person selects a location a pop up screen comes up which asks that they understand terms and conditions for that particular property which they have to accept to go any further.

    Thanks again for the help.
     
    debsten, Oct 9, 2008 IP
  4. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Sure, you can create a modal dialog box with a few extra line of Javascript code. Again, there are heaps of tutorials, like this one:
    Tizag - Javascript Confirm Box

    If you want it to appear only once, you need to change the code slightly so that it tests if the user has already selected OK.
     
    Cash Nebula, Oct 10, 2008 IP