how to make form notification show int as currency

lawrence whittemore asked on May 2, 2022 17:00

I'm trying to have a bizform notification email show a value as currency.

I tried something like this

{%value.ToString("C2")%}

but it is just showing the number

Recent Answers


Keith Hammond answered on May 4, 2022 17:30

Hello, Lawrence. In macros, you can enter static strings as a macro, and they will resolve as that exact text. For example: {%"Hello, world."%}

So for your formatting, you should be able to do something like this: {%"$" + value.ToString("C2")%}

0 votesVote for this answer Mark as a Correct answer

lawrence whittemore answered on May 4, 2022 17:59

Sorry, by "just showing the number" i meant it wasn't adding the commas either. the .ToString("C2") didn't appear to do anything.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 10, 2022 06:06

Lawrence, check out the docs. I think your syntax is off just a bit.

Maybe something like

.ToString("", "en-us", "C2")

I'd that doesn't work you may need to use the ToDouble macro.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.