Time:
Scotland: Sat, 12:05 am
Rhode Island: Fri, 7:05 pm
Florida: Fri, 7:05 pm
New Mexico: Fri, 5:05 pm
California: Fri, 4:05 pm

Click here to visit Livelife365.com

Click here to visit nmdarts.com



Buy this Ad Space.

180px wide.

Please get in touch with KH@ if you are interested and make an offer.

CLICK HERE TO GET AUCTION BAR NOW
US$10 per year - Save $100s!
The Fabulously Unfair
WebX Auction Bar. For Ebay etc.
Ro-Sham-Bo the opposition. Laugh like Eric Cartman when you win! CLICK HERE NOW!


More information and sign-up.

WebXpertz Hosting.
Custom fit from $5pm. PHP/MySQL
You'll save money, we'll save money. Seems fair to me. Interested? If so Please PM me here and tell me what you need. Thanks!


Please click here for more information

For continued disscussion on this topic : Cold Fusion: Radio button selection


ceb39
05-04-2004, 10:31 PM
I have a CFFORM which is working okay. It contains a set of three radio buttons and a set of two radio buttons. I have set up a radio button (CFINPUT TYPE ="Radio" ...) in each set as the CHECKED button. What I really would like is to not use CHECKED (I am sure a form users will skip over this and submit the form with the wrong button selected if CHECKED is used), but drive the user to select one of the radio buttons. Something like using the REQUIRED and MESSAGE options in a type TEXT field.

I have searched quite a few sites for something along this line but as of yet have found nothing specific to this situation.

Thanks

Chuck

KH@
05-08-2004, 07:06 PM
If you leave the radio buttons unchecked one way to fix things is to check if the parameter has been passed to the target page then redirect if it hasnt

eg say your form is being submitted to process.cfm

then on process.cfm you put something to check CFIF the parameter isDefined() and use javascript onload to first alert them to the problem then second send the visiter back so the form they filled in is still filled in

<CFIF IsDefined("FORM.daRadioName")>
<BODY>
<P>Because the variable FORM.daRadioName has been defined, we
can now proceed<P>The value of "FORM.daRadioName" is <B><I><CFOUTPUT>#FORM.daRadioName#
</CFOUTPUT></I></B>
<CFELSE>
<BODY onload="alert('fill in a value for daRadioName');history.go(-1);">
<P>The variable
"FORM.daRadioName" has not yet been defined, so it is not evaluated. Send them back

</CFIF>

There are probably other ways

ceb39
05-10-2004, 04:41 PM
That is an interesting approach, will give it a try and let you know what happens.


Thanks

Chuck

KH@
05-19-2004, 12:29 AM
Well thats a week or so...

So what happend???