www.webdeveloper.com
Results 1 to 4 of 4

Thread: Forms - deciding between 2 options, how?

  1. #1
    Join Date
    Sep 2005
    Posts
    2

    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)

    or

    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
    Location
    USA
    Posts
    3,910
    You could use radio buttons that when clicked disable one of those two form controls.

  3. #3
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    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.

  4. #4
    Join Date
    Sep 2005
    Posts
    2
    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



Recent Articles