Hi,
One way of parsing a currency amount is to add a hidden decimal field, with the display patterns you need, then assign the string with currency symbol to the formattedValue. If it matches the pattern then the rawValue will be set just as a straight number.
So try;
function parseCurrency(string)
{
var result = 0;
if (string !== null && string !== undefined)
{
DecimalField1.rawValue = null;
DecimalField1.formattedValue = string;
if (!DecimalField1.isNull)
{
result = parseFloat(DecimalField1.rawValue);
}
}
return result;
}
var Total = parseCurrency(TextField1.rawValue);
Total += parseCurrency(TextField2.rawValue);
Total += parseCurrency(TextField3.rawValue);
With a display pattern of num{$zzz,zzz,zz9.88}|num{$zzzzzzzz9.88} for DecimalField1
Regards
Bruce