default value for a radio button and or check box

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default default value for a radio button and or check box

    I am not sure where to go on this. I ahve in the oast used the action page to
    use the <cfif len(form.name) is 0> and <cfif form.name EQ ""><cfset form.name =
    value></cfif> But this does not seem to work with a check box or radio
    buttion.

    In regards the the radio if not selected it will send a default value to the
    database. In regards to the check box if unchecked it will send a 0 to the
    database as checked would be 1.

    Not sure if the code should be on the from page or the action page prior to
    the insert


    ggorge Guest

  2. Similar Questions and Discussions

    1. Acrobat 9 for Mac Leopard - No Radio Button or Check Box
      Can't find the Radio Buttons or Check Boxes. Where are they? No such problem on version 8.
    2. 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'...
    3. 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...
    4. Print radio buttons & check boxes
      I'm using Director 8.5.1 on Windows XP. I have Printomatic lite. I figured out that I can save the outcome of a checkbox/radio button with put...
    5. Custom Radio buttons Check Box
      Does anyone have a custom radio button/checkbox control for ASP.NET webform system that replaces the standard circle and box? Thanks, Lance
  3. #2

    Default Re: default value for a radio button and or check box

    I would pre-select one of the radio buttons when I load the form page. If appropriate, give them a "one of these options" button and preselect that.
    Dan Bracuk 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