Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Calculated field to display negative answer in parentheses instead of using the (-) sign

Avatar

Level 6

I have a numeric field on a form with a calculation. The calculation works fine but if the answer is negative, I need it to display as (24.36) as opposed to -24.36. Can someone let me know how this is done? Thank you in advance!

1 Accepted Solution

Avatar

Correct answer by
Level 6

Ok I answered my own question. In Patterns under Display put the () inside {} like this: num{(z,zzz,zz9%)} My example needed percentages so thats I what I used.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 6

Ok I answered my own question. In Patterns under Display put the () inside {} like this: num{(z,zzz,zz9%)} My example needed percentages so thats I what I used.

Avatar

Administrator
@nowackem, Thank you for sharing answer with community. This would help in posterity. Keep contributing to the AEM community.


Kautuk Sahni