function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VarunCVarunC 

Currency Field Value with minus sign

Is there any way around so that I can display a Currency Field value with a minus sign if Currency value is negative?

Currently an <apex:inputField> with Currency Field will display a negative amount with brackets around it like this:  ($100.00), I would like to display this value like this: -$100.00

VarunCVarunC
No takers .. !!!
GaryAGaryA

Change your field from currency to number, then display on page as outputtext and apply formatting.

Ajay K DubediAjay K Dubedi
Hi Varun,

* You cannot insert a minus sign in a Currency Field.

* If you want to add a minus sign change your field's Datatype to number

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com