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="" 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

 

Reply via email to