Results 1 to 4 of 4

Thread: Forms - deciding between 2 options, how?

  1. #1
    Join Date
    Sep 2005

    Forms - deciding between 2 options, how?

    I'm trying to create a form that has a section that will allow the user to choose one of 2 options, for example :

    Option 1 - pulldown menu (of pre-loaded pictures on a remote server)


    Option 2 - textbox (user may enter the filename path)

    The form includes other options, but for this particular one, I want the user to either select from a pulldown list or enter the filename path themselves. If the user selects something from the pulldown list the other option should be disabled, but they can choose that option (and disable the other one) if they change their mind.

    I know it should be easy but I couldn't find any help on this.

  2. #2
    Join Date
    Jul 2005
    You could use radio buttons that when clicked disable one of those two form controls.
    Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions

    Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.

    Check out my blog.

  3. #3
    Join Date
    Nov 2003
    Jerryville, Tejas
    If Javascript is ok then you could simply use the value in the textbox for everything. They could either type something in or set it from their pick in the select box.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  4. #4
    Join Date
    Sep 2005
    Hi thanks people, I'm going to try and use the radio button as it seems like what I'm looking for. Thanks!

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
HTML5 Development Center