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]
