If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Cognos 8.4.1: Capture Radio button group selected value

Started by venkiatmaruthi, 17 Mar 2011 03:11:07 AM

Previous topic - Next topic

venkiatmaruthi

Hi,

How to capture the radio button group selected value using Javascript.

I have a prompt Location which is a radio button group.

Using Javascript I want to capture the selected value and do some validation.

par_Loc = getFormWarpRequest()._oLstChoicesLocation.value;


How can I do this. The above stmt is not working.

Thanks.

venkiatmaruthi

Hi

I got it. we have to use for loop and if condition to get the value. Here is the code.


var radbutton1;
radbutton1=getFormWarpRequest()._oLstChoicesLocation;
for (count=0;count <radbutton1.length; count++)
if (radbutton1[count].checked)
par_Loc=radbutton1[count].value;