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

value prompt java script?

Started by everlearner, 26 Jun 2012 06:41:53 AM

Previous topic - Next topic

everlearner

Hi all,

how to display the selected value in value prompt by using java script?

that selected value i have to check before clicking on FINISH?

pricter


everlearner

thanks for ur reply, i have used that doc only for the reference. the following i have written to get the value.

<SCRIPT type="text/javascript">

var form = getFormWarpRequest();

var VPT  = form._oLstChoicesV;

var val = VPT.options[0].selected.value;/ var val=VPT.options[0].value; ( tried both)
alert(val);

</SCRIPT>

but am unable to get the selected value. tell me how wud i get that

bdbits

I did not create a test case, but I believe it would be: VPT.options[VPT.selectedIndex].value

everlearner