Radio Button Options in Dynamic ASP Page

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Radio Button Options in Dynamic ASP Page

    I had a Dreamweaver "Behaviors question" for a survey I was working on. Please
    see survey link below: [url]http://www.scif.com/SFO/Survey/SelfRegistration.asp[/url]

    Question # 5 on the survey gives the user to choose from one of the radio
    buttons YES or NO and then gives an option of FIVE checkboxes below that.

    Does anyone know how can I get the survey to work in such a way that if the
    user clicks on radio button NO on question # 5 in the survey, he/she does not
    have the option of clicking on any of the five check boxes. Only if he clicks
    on the radio button YES, should he be able to click on any of the five check
    boxes below. Presently, wether user clicks on radio button yes or no, he is
    able to check all the check boxes. Can this be resolved thru Dreamweaver
    Behavior options or do you recommend any other option like ASP code etc? Thanks



    NishSF Guest

  2. Similar Questions and Discussions

    1. radio button
      i have 2 radio button and i want to set the 1st one is defaul <CFSET typeA = 'exempt'> <INPUT type='radio' name='typeA' value ='exempt'...
    2. Radio Button vSpacing
      Hello! I know this has to be really simple, but I can't seem to get it right. I have a flash survey that pulls the questions and radio buttons...
    3. Taking a value from a radio button
      Hi, I?m trying to take a value from a radio button. But I?m don?t getting. I tried with a code, like that: ... var frm = document.forms;...
    4. Struggling with page redirect based on radio button andform..?
      Hi - using ASP/ACCESS/VB Script Have been struggling on this for days no, so I need som help please; Have a form with 2 radio buttons - se...
    5. Radio Button Help me please!
      Hi I need help quick! let me explain my problem: Ičve made a form in flash with textfields and radio buttons. It submits the data from the...
  3. #2

    Default Re: Radio Button Options in Dynamic ASP Page

    Hi NishSF,

    You cannot achieve what you need with html alone. You could use a custom
    JavaScript using an If Else conditional statement if you needed to validate
    the users selection on the client-side. You may be better of using ASP
    (VBScript) if your form is being processed by the server (which it is of course
    once any client side scripting has been run).

    You could use a simple selection control structure, such as:

    IF condition THEN
    Statement 1
    ELSE
    Statement 2
    END IF

    This could check if checkbox 'no' was selected and move the user to the next
    field, or pass them to the options if 'yes' was ticked.

    Remember that with checkboxes and ASP you need to know if the user has checked
    the box, or combination of boxes, in accordance with the W3C's requirement that
    only successful controls are returned as name=value pairs. So, you will need
    to check for the existance of checkboxes that you use have been selected or not
    to make sure that you don't get an error when retrieving your form data.

    Use the

    IF Len(Request.QueryString("checkboxname")) > 0 THEN (or Request.Form for
    POST method)
    do something
    ELSE
    do something else
    END IF

    Finally, remember checkboxes can be grouped and have a common name or
    individual names.

    Nick Barling:cool;

    Nick Barling Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139