Formatting a calulated field in javascript
I have a calculation that needs to return a currency value ($ symbol & two decimal places) if a field (A) used in the calculation is filled in (ie: showing a number value) then the Result field must show $x,xxx.xx.
(Currency + comma separator + two decimal places)
My calculation is set to be blank when field (A) is blank. I can't set the format for my result field to currency as it returns an error when Field (A) is changed from a value to blank.
What is the javascript to set this up and is it entered into the custom format script block?
Thanks