Hello,
I have been trying to set my currency values to default to blank, but they keep defaulting back to $0.00. Any way I can work around this? I'm using Sugar On-Demand Enterprise, version 7.11.1.0.
Thanks in advance,
Raul
Hello,
I have been trying to set my currency values to default to blank, but they keep defaulting back to $0.00. Any way I can work around this? I'm using Sugar On-Demand Enterprise, version 7.11.1.0.
Thanks in advance,
Raul
Hi Raul Munoz
The default currency value is defined at clients/base/fields/currency/currency.js by the method format the way whenever the currency field value is null or empty it is set to 0, which is format to "0.00".
If you want to globally set it as blank/empty then you need to extend the BaseCurrencyField (custom/clients/base/fields/currency/currency.js) and override the method format accordingly.
But if you want to make this change to a specific set of currency fields so you can do that through SugarLogic formula at Studio.
Regards
Hello Andre,
Thank you for your quick response. I am not a developer, so I would have to do this via a SugarLogic Formula. What formula would I use?
Thank you,
Raul
Maybe this formlula works:
ifElse(equal(round($amount,0),0),"",$amount)
Regards
Hello Andre,
This didn't seem to work either. I was able to contact someone from the support team and they said it was a defect. They said they will be working on a fix soon: defect #80370.
Thank you for your help! Much appreciated.
Raul
Hi Raul Munoz
I am having the same issue while updating a currency field from REST API. Have you checked this issue has been fixed in next releases or do you have any work around for this?
Regards,
Selva