Skip to main content
October 1, 2010
Question

How to hide a field based on a radio button.

  • October 1, 2010
  • 1 reply
  • 1202 views

I have a field called Play Intro. It defaults to NO. There is a field below it that allows you to select your Intro type. I want this field to NOT be displayed unless the user checks YES in the Play Intro  radio button field. Thesee fields are HTML input fields and not CFINPUTS.

I am using Coldfusion 8.

I assume this may need javascript, but I have no experience with that. Does anyone have the code that would do this or direct me somewhere to show me how to do this?

    This topic has been closed for replies.

    1 reply

    existdissolve
    Inspiring
    October 1, 2010

    Google "hide form field".  You'll get a billion good examples of how to accomplish this, and the answer within the first 4 results.

    October 1, 2010

    Iam havving trouble finding somethingthat fits. The developer before me set the page up to use table row IDs as the call names in the javascript. So I have found some stuff that  handles DIV tags, but nothing for table row IDs.

    October 1, 2010

    Its probably because I dont unerstand javascript at all. I may be looking at a solution and dont know it.