Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
torm #1
radio button
i have 2 radio button and i want to set the 1st one is defaul <CFSET typeA =
'exempt'> <INPUT type='radio' name='typeA' value ='exempt'
<cfif typeA eq 'exempt'>checked</cfif>> <INPUT type='radio'
name='typeA' value ='non_exempt' <cfif typeA eq '
non_exempt'>checked</cfif> WHY my exempt button is not checked as
default button ..??? i got 2 unchecked radio button PLEASE HELP!!!!! THANKS A
BUNCH
torm Guest
-
Taking a value from a radio button
Hi, I?m trying to take a value from a radio button. But I?m don?t getting. I tried with a code, like that: ... var frm = document.forms;... -
Radio button insert
Hello, I have the following code in my project: <cfinput type="radio" name="gender" value="Female" checked="yes"> Female <cfinput type="radio"... -
Radio Button Validation
:o Hello, I am using CFForm and CFInput to construct a rather simple form. However, the javascript that I am using in the onvalidate event of one of... -
Radio Button Help me please!
Hi I need help quick! let me explain my problem: Ičve made a form in flash with textfields and radio buttons. It submits the data from the... -
Radio button group
I have a simple html page with a radio button group on it. I am submitting that page into an asp page. How do I know what button the user has... -
cf_menace #2
Re: radio button
What HTML is being generated?
When you're checking <cfif typeA eq " non_exempt">, where are you setting
"typeA" equal to "non_exempt"?
Also, while it's more typing, it's sometimes easier to just write out all your
code, rather then set conditionals inside HTML tags. Sometimes it helps when
debugging.
<CFSET typeA = "exempt">
<cfif variables.typeA EQ "exempt">
<INPUT type="radio" name="typeA" value ="exempt" checked> Exempt
<INPUT type="radio" name="typeA" value ="non_exempt"> Non-exempt
</cfif>
<cfif variables.typeA EQ "non_exempt">
<INPUT type="radio" name="typeA" value ="exempt"> Exempt
<INPUT type="radio" name="typeA" value ="non_exempt" checked> Non-exempt
</cfif>
cf_menace Guest
-
kt03 #3
radio button
How do I keep the value for radio button when the page is refreshed? Another work, when the page is refreshed, I lost the value that I already select for the radio button
Thanks
kt03 Guest
-
champion_fella #4
Re: radio button
you can't do that. unless you create a form that submits to itself (its action page is itself) and using conditional logic you convert the form variables to session variables.
champion_fella Guest
-
-
champion_fella #6
Re: radio button
could you describe in more detail a bit more about what you are trying to achieve
champion_fella Guest
-
trycold #7
radio button
Hi,
I have defined rabiobutton like this.
<mx:RadioButtonGroup id="loption" />
<mx:RadioButton groupName="loption" data="red" />
<mx:RadioButton groupName="loption" data="green" />
I want this field to be optional. If user does not select anyhting then I
want to perform some function. How do I give that in if statement.
I tried using if(loption.selected == false) It gives me an error. What
condition I have to give.
Thanks
trycold Guest
-
-
mm_patrick #9
Re: radio button
hth
<?xml version="1.0"?>
<!-- Simple example to demonstrate the TextArea control -->
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
backgroundColor="#FFFFFF">
<mx:Script>
<![CDATA[
function checkValues()
{
var lblText:String;
switch(loption.selection.data) {
case "red": lblText = "Red";
break;
case "green": lblText = "Green";
break;
}
if (lblText == "" || lblText == Null) lblText = "White";
lblStatus.text = lblText;
}
]]>
</mx:Script>
<mx:RadioButtonGroup id="loption" />
<mx:RadioButton groupName="loption" data="red" />
<mx:RadioButton groupName="loption" data="green" />
<mx:Button label="Check Values" click="checkValues();"/>
<mx:Label id="lblStatus"/>
</mx:Application>
mm_patrick Guest
-
trycold #10
Re: radio button
Hi,
loption.selectedData == undefined
worked in the if statement. But if I want to clear the setting like if some
option is selected I want to unselect it then for the radiobutton I tried
loption.selectedData = undefined. This didn't work. How do I do that.
Basically I want to do this that once user has added the record I want to come
back to the original settings where the radio button was not selected.
Thanks
trycold Guest
-
trycold #11
radio button
Hi,
I have a form in which I have radiobutton. I ahve provided a clear button
which clears everything in the form. When that button is pressed I want the
radio button to be unseleced also. How can I deselect a radiobutton?
Thanks
trycold Guest
-
mm_patrick #12
Re: radio button
I hope this helps
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">
<mx:Script>
<![CDATA[
function clearForm()
{
myGroup.selection.selected = false;
}
]]>
</mx:Script>
<mx:Form>
<mx:RadioButtonGroup id="myGroup"/>
<mx:RadioButton id="rbutton1" groupName="myGroup"/>
<mx:RadioButton id="rbutton2" groupName="myGroup"/>
<mx:RadioButton id="rbutton3" groupName="myGroup"/>
<mx:Button click="clearForm();"/>
</mx:Form>
</mx:Application>
mm_patrick Guest
-
-
nrutter #14
Radio Button
I am having all kinds of problems trying to return the string of the selected
radio button to my VO. I have a set of radio buttons below. What I am trying
to figure out is how I am supposed to return the selected value to my
ProductVO.
[Bindable] public var currentProduct:ProductVO = new
ProductVO('',null,'','','upcRadio', 'prodNameRadio', 'epaRadio','');
<mx:RadioButtonGroup id="searchtype"
change="model.currentCaseVO.upcRadio" />
<mx:RadioButton groupName="searchtype"
id="upcRadio" value="upcRadio"
change="model.currentCaseVO.upcRadio"
label="UPC"
width="116"/>
<mx:RadioButton groupName="searchtype"
id="prodNameRadio" value="prodNameRadio"
change="currentProduct.prodNameRadio"
label="Product Name"
width="121"/>
<mx:RadioButton groupName="searchtype"
id="epaRadio" value="epaRadio"
change="model.currentCaseVO.epaRadio"
label="EPA/FDA"
width="125"/>
nrutter Guest



Reply With Quote

