Radio Button to change Form Fields

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Radio Button to change Form Fields

    I am looking for code to do the following:

    I have a Radio Button Called MonthQuarter. With Quarter checked by default.
    I also have a form selction field which shows Months or Quarters Depending on
    the Radio button

    Not sure about how to implement this in Colfusion. I guess I would use the
    onchange property for the radio button?



    Ozbroomy 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. How do i programmatic-ally change the Mouse Up-triggered JavaScript Action of a Submit button in a form contained in hundreds of PDFs?
      Hi Guys! How do i programmatically change the Mouse Up-triggered JavaScript Action of a Submit button in a form contained in hundreds of PDFs? In...
    3. change the default color of fields in a form
      Hi.. This forum's great... I'm a very new user to dW, I work mostly in design mode but can edit a bit of code, not much. I created a form...
    4. Sending radio button form data to PHP email generator
      I've bene struggling with this for 2 days! I've got a form with 5 radio buttons and two text forms. My submit button has this as: on (release)...
    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 to change Form Fields

    onclick worked for me. Been awhile but I'm pretty sure I struggled with
    onchange vs onclick before I got following to work: Show Status Lists Sorted
    By: <input type='radio' name='TypeStatus' value='C' <CFIF Session.TypeStatus
    IS 'C'> checked </cfif> onClick='this.form.submit(); return true;'>Code <input
    type='radio' name='TypeStatus' value='D' <CFIF Session.TypeStatus IS 'D'>
    checked </cfif> onClick='this.form.submit(); return true;'>Description

    JMGibson3 Guest

  4. #3

    Default Re: Radio Button to change Form Fields

    This is really a javascript function. You'll want to use onclick and have javascript change the content of the select box. Head over to [url]http://javascript.internet.com[/url] for some sample code.

    Mancho00 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