
Dears,
How to convert dollar to BHD (Bahrain dinar) ,i need javascript for this ,when i enter in cost in dollar it should automatically will appear in cost in bhd as converted ,please advise me if have any solution
*This post is locked for comments
I have the same question (0)Hi Sabih,
You can use the Javascript code below.
function ConvertUsdToBhd (){
var usd = Xrm.Page.getAttribute("usdLogicalName").getValue();
if((usd!=null)&&(usd!=undefined))
Xrm.Page.getAttribute("bhdLogicalName").setValue(usd*0.375);
}
Register this Javascript function on the load of form and on change of USD.
Hope this helps.