You need to sign in to do that
Don't have an account?
The Finnster
Add an additional onchange field to a visual force page
Hi,
I have a custom visual force page that we use to add products to the opportunity. There is a Total Value field on the page that gives the value of the product in USD based on the Start Date, End Date and Quantity and price of the product. I want to add another field to the page that does a similar job but give the total value in AED i,e the exisiting Total Value field * 3.675
I have a custom visual force page that we use to add products to the opportunity. There is a Total Value field on the page that gives the value of the product in USD based on the Start Date, End Date and Quantity and price of the product. I want to add another field to the page that does a similar job but give the total value in AED i,e the exisiting Total Value field * 3.675
var parts = totalValue.toString().split('.');
var totalValueFinal;
if(parts[1] != null && parts[1].length > 0 && parts[1].length < 5)
totalValueFinal = 'USD '+ totalValue.toFixed(parts[1].length);
else if(parts[1] != null && parts[1].length > 4)
totalValueFinal = 'USD '+ totalValue.toFixed(4);
else
totalValueFinal = 'USD '+ totalValue;
if(isRender)
document.getElementById(totalVal).innerHTML = totalValueFinal;
}
if(isRender && (totalValueFinal==null || isNaN(totalValue))) {
document.getElementById(totalVal).innerHTML = 'USD ';
}
totalValueOfAllProducts();
testQuantityCPD();
}