Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Passing radio button/drop down menu info to somebody else's form?

    Howdy Folks,

    Apologies if this is a dumb question, but I'm really new at this stuff.

    Is it possible to create a very simple form that allows people to "pre-select" radio button and drop-down options, then pass that information on to somebody else's form?

    At this point these other folks don't want to modify their code to acoomodate my needs, so I'm wondering if it is possible to do it without their cooperation.

    I need input type="radio" name="fundSelector" value="graduatingclass" to be checked and one of the select box values to be preselected
    <select name="graduatingClassSelection">

    Source code is attached.

    Cheers,
    QT Johnson
    Attached Files Attached Files

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,300
    Thanks
    28
    Thanked 275 Times in 269 Posts
    Quote Originally Posted by QT Johnson
    Howdy Folks,

    Apologies if this is a dumb question, but I'm really new at this stuff.

    Is it possible to create a very simple form that allows people to "pre-select" radio button and drop-down options, then pass that information on to somebody else's form?

    At this point these other folks don't want to modify their code to acoomodate my needs, so I'm wondering if it is possible to do it without their cooperation.

    I need input type="radio" name="fundSelector" value="graduatingclass" to be checked and one of the select box values to be preselected
    <select name="graduatingClassSelection">

    Source code is attached.

    Cheers,
    QT Johnson
    You should be able to select a form choice by default using the selected attribute. If you're using XHTML, you need to spell out the full attribute. Example:

    HTML4: <option selected>
    XHTML: <option selected="selected"></option>

    Resource: http://www.w3.org/TR/html4/interact/forms.html#h-17.6.1

    I believe this also applies to radio buttons.
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •