Forum Discussion
AmyGosz2
7 years agoQrew Cadet
THAT WORKED!! I also changed all the [Price] field names to the actual field name.
This is the final code:
var number Price = [Annual Surcharge Total] ;
var text FormattedNumber =
"$" &
ToFormattedText([Annual Surcharge Total],"comma_dot",3) &
If(
not Contains(ToText([Annual Surcharge Total]),"."),
".00",
Length(Right(ToText([Annual Surcharge Total]),"."))=1,"0"
);
"<div style=\"background-color:pink;\">"& $FormattedNumber &"</div>"
Thank you so much for the quick response!