I've found if I change the capitalization of the data in the value
attribute that it works as expected.
<cfform action="actionPage.cfm" name="contactForm" format="xml"
skin="blue" width="500">
<cfformgroup type="horizontal" label="I wish to be contacted: ">
<cfinput type="radio" name="contact" label="yes"
value="yes" required="yes" checked="Yes">
<cfinput type="radio" name="contact" label="no"
value="no" >
</cfformgroup>
<cfformgroup type="horizontal" label="Is Active: ">
<cfinput type="radio" name="ynIsActive" label="Yes"
value="Yes" required="yes">
<cfinput type="radio" name="ynIsActive" label="No"
value="No" checked="yes">
</cfformgroup>
</cfform>
There's no excuse for having this bug.
Tom
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ryan Guill
Sent: Wednesday, July 27, 2005 9:54 AM
To: [email protected]
Subject: Re: [CFCDev] XML form help (CFFORM)
try checked="true", its worth a shot.
every time the cf docs say to use a yes or no, I always use true/false
anyway.
On 7/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Thanks for the reply, but that does not work. CF requires a Boolean
> value for checked attribute.
>
> Even if I remove all checked attributes from the second radio group,
the
> yes element is selected because the first radio group has it's yes
> element selected.
>
> Weird. This has to be a bug.
>
>
> Tom
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Bill Rawlinson
> Sent: Wednesday, July 27, 2005 9:20 AM
> To: [email protected]
> Subject: Re: [CFCDev] XML form help (CFFORM)
>
> changed checked="yes" into checked="checked" instead.
>
> that should do it; for elements that aren't checked do not provide the
> checked attribute at all.
>
> On 7/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > This maybe off topic for this list, but I hope someone can help
> please. I'm
> > trying to get CFMX7's XML forms to work with different groups of
radio
> > elements. Here's my code snippet:
> >
> >
> >
> > <cfform action="actionPage.cfm" name="contactForm" format="xml"
> skin="blue"
> > width="500">
> >
> > <cfformgroup type="horizontal" label="I wish to be
> contacted: ">
> >
> > <cfinput type="radio" name="contact"
> label="Yes"
> > value="yes" required="yes" checked="Yes">
> >
> > <cfinput type="radio" name="contact"
> label="No"
> > value="no" >
> >
> > </cfformgroup>
> >
> > <cfformgroup type="horizontal" label="Is Active: ">
> >
> > <cfinput type="radio" name="ynIsActive"
> label="Yes"
> > value="yes" required="yes" checked="no">
> >
> > <cfinput type="radio" name="ynIsActive"
> label="No"
> > value="no" checked="Yes">
> >
> > </cfformgroup>
> >
> > </cfform>
> >
> >
> >
> >
> >
> > I've the contact radio element's "yes" option selected and I want
the
> > ynIsActive element's "no" option selected by default. The form is
> getting
> > rendered with both groups having "yes" option selected. It appears
> the
> > value of the first radio grouping is getting applied to the second
> radio
> > grouping even though each group has a unique name. What gives? Is
> this a
> > bug, or is there a setting I'm missing?
> >
> >
> >
> > Thanks - Tom
> > ----------------------------------------------------------
> > You are subscribed to cfcdev. To unsubscribe, send an email to
> > [email protected] with the words 'unsubscribe cfcdev' as the
subject
> of the
> > email.
> >
> > CFCDev is run by CFCZone (www.cfczone.org) and supported by
> CFXHosting
> > (www.cfxhosting.com).
> >
> > CFCDev is supported by New Atlanta, makers of BlueDragon
> > http://www.newatlanta.com/products/bluedragon/index.cfm
> >
> > An archive of the CFCDev list is available at
> > www.mail-archive.com/[email protected]
>
>
> --
> [EMAIL PROTECTED]
> http://blog.rawlinson.us
>
> If you want Gmail - just ask.
>
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to
> [email protected] with the words 'unsubscribe cfcdev' as the subject
of
> the email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
> (www.cfxhosting.com).
>
> CFCDev is supported by New Atlanta, makers of BlueDragon
> http://www.newatlanta.com/products/bluedragon/index.cfm
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
>
>
>
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of
the email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
>
> CFCDev is supported by New Atlanta, makers of BlueDragon
> http://www.newatlanta.com/products/bluedragon/index.cfm
>
> An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
>
>
>
--
Ryan Guill
BlueEyesDevelopment
[EMAIL PROTECTED]
www.ryanguill.com
(270) 217.2399
Want gmail? Get it here while its hot.
www.ryanguill.com/blog/
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of
the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]