Can I do this with forms

Discussion in 'Programming' started by Las Vegas DUI Lawyer, Mar 2, 2011.

  1. #1
    I want to implement multiple linked drop down selection in my form. Meaning I want several drop down selections but they be linked so that only one selection may be made.

    For example:

    pick your age: 1 - 5

    Pick your age: 6 - 20

    Pick your age: 21-100

    the numbers represent drop down choices

    Obviously you can only choose one age.

    What I am doing is presenting different advertisers ranging from high end, on top, to low end, on bottom according to their worth. The "pick your age" is going to also be representative of the relative worth of the selection, i.e. Choose performance, choose practical, choose economy.

    So can and how can i make different drop downs and they be linked so that the client can only choose one selection of the 3 menus? :confused:
     
    Las Vegas DUI Lawyer, Mar 2, 2011 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I dont see why you want to have 3 drop downs, why not just have one and explain the "consequence" of their choice if you are saying that selecting a certain age impacts "worth"
     
    AstarothSolutions, Mar 3, 2011 IP
  3. Las Vegas DUI Lawyer

    Las Vegas DUI Lawyer Peon

    Messages:
    243
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    not to sound like a jerk, but that wasn't the question. thanks for responding though.
     
    Las Vegas DUI Lawyer, Mar 3, 2011 IP
  4. bthomas312

    bthomas312 Peon

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    bthomas312, Mar 3, 2011 IP
  5. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Doesnt mean that is what you sound like..... any good solutionizer needs to understand what is trying to be achieved (aka the requirement) and then propose the solution otherwise you get the GIGO affect
     
    AstarothSolutions, Mar 3, 2011 IP
  6. longcall911

    longcall911 Peon

    Messages:
    1,672
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I'm not 100% clear on what you wish to accomplish, but it seems that what bthomas12 proposed gets to what you want. If not, know that you can not really 'link' drop down lists.

    There are two standard methods that could be used though. First is using scripting engine to set a behavior. The second is validation scripting. Using a behavior, you would use the 'on change' method of any drop-down to change the other two to 'nothing selected'. Or, after submission check the data and send the user back to the form with an error message if more than one list has a selection.

    In any case, to do what you are asking, a scripting language (any one) is required.
     
    longcall911, Mar 3, 2011 IP
  7. Las Vegas DUI Lawyer

    Las Vegas DUI Lawyer Peon

    Messages:
    243
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Las Vegas DUI Lawyer, Mar 4, 2011 IP