Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFMX 7 cfinput tag bug or wrong usage?

Status
Not open for further replies.

countdrak

Programmer
Jun 20, 2003
358
US
I have started developing in cfmx 7 and I came across something really weird. I am not sure if its a cfmx bug or if I am doing something wrong.

I have a cfform tag and a cfinput radio button in it. Here is the code.

Code:
<cfform format="flash" name="thisform" action="form1.cfm method="post" skin="halosilver">
.....

<cfinput type="radio" name="ContentType" value="" label="Load Content" required="no" message="Please select the content type" checked="no">

</cfform>

If I had a regular HTML input tag for the radio button, The value of #Form.ContentType# would be and empty string and the Len would be zero after submitting the form.correct?

But when I submit the above form the value of #Form.ContentType# is "Load Content" which is the LABEL and NOT an empty string! Is my usage incorrect or this is a bug in the program. Please help.

When I get rid of the label in the cfinput tag the value of #Form.ContentType# becomes [empty string] and the Length is 0. What is going on?
 
read comments from livedocs


If you don't ask the right questions, you don't get the right answers. A question asked in the right way often points to its own answer. Asking questions is the ABC of diagnosis. Only the inquiring mind solves problems.

-Quote by Edward Hodnett
 
To get a radio button without a text label, you MUST specify label="". If you simply omit the 'label' attribute, the 'value' attribute of the tag will be used to display a test label instead.

How is that the solution to my problem? I want the label attribute..and want the value to be ZERO...Sorry if I misunderstood, could you elaborate?
 
you didn't ask for a solution. you asked if it was a bug. It's on livedocs so if they have a fix or a work around it'll be out in 7.1 hehe you can submit a bug report to be sure though.

If you don't ask the right questions, you don't get the right answers. A question asked in the right way often points to its own answer. Asking questions is the ABC of diagnosis. Only the inquiring mind solves problems.

-Quote by Edward Hodnett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top