Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

how to set the two option set value set to yes/no using if statement

$
0
0

Hi All,

I need  to set the two option set value set  to yes/no using if statement

Below is my javascript  but its not working where 'new_gvadelta' is a money value with 2 decimal places

Any help much apprecited

Thanks

function CalculateBusinessImproved() 
{


 var value1 = (Xrm.Page.getAttribute('new_gvadelta').getValue()!=null ?
 parseFloat(Xrm.Page.getAttribute('new_gvadelta').getValue()):null); 


if (value1>0)
 {

Xrm.Page.getAttribute('new_businessimproved').setValue('1'); 

 
 }
 else{
  (value1 <= 0) 
	Xrm.Page.getAttribute('new_businessimproved').setValue('0'); 	
 }
}


Pradnya07


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>