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

Javascript syntax error in CRM 2011 RU15

$
0
0

The following javascript worked fine prior to RU15. Any idea on why I would be getting a syntax error now. This is simply setting some check boxes as true if the corresponding currancy field is filled in.

function checkContractServiceFees_onLoad() {
   var rdsFee = Xrm.Page.getAttribute("nhs_rdsfee").getValue();
   var brokerFee = Xrm.Page.getAttribute ("new_brokerconsultantfee").getValue();
   var tpaFee = Xrm.Page.getAttribute("new_tpacommissionfee").getValue();
   var sterlingFee = Xrm.Page.getAttribute("new_sterlingfee").getValue();
   var otherFee = Xrm.Page.getAttribute("new_otherfee").getValue();
   var memberMaterialFee = Xrm.Page.getAttribute("nhs_membermaterialscost").getValue();
 if (rdsFee != null) {Xrm.Page.getAttribute("nhs_hasrdsfee").setValue(true)};
   else {Xrm.Page.getAttribute("nhs_hasrdsfee").setValue(false)};
 if (brokerFee !=null) {Xrm.Page.getAttribute("nhs_hasbrokerconsultantfee").setValue(true)};
   else {Xrm.Page.getAttribute("nhs_hasbrokerconsultantfee").setValue(false)};
 if (tpaFee !=null) {Xrm.Page.getAttribute("nhs_hastpafee").setValue(true)};
   else {Xrm.Page.getAttribute("nhs_hastpafee").setValue(false)};
 if (sterlingFee != null) {Xrm.Page.getAttribute("nhs_hassterlingfee").setValue(true)};
   else {Xrm.Page.getAttribute("nhs_hassterlingfee").setValue(false)};
 if (otherFee !=null) {Xrm.Page.getAttribute("nhs_hasotherfee").setValue(true)};
  else {Xrm.Page.getAttribute("nhs_hasotherfee").setValue(false)};
 if (memberMaterialFee !=null) {Xrm.Page.getAttribute("nhs_membermaterialsfee").setValue(true)};
 else {Xrm.Page.getAttribute("nhs_membermaterialsfee").setValue(false)};
}
Any assistance would be greatly appreciated.

Viewing all articles
Browse latest Browse all 8223

Trending Articles



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