Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Forms 6.5 Number formatter not showing decimals for percentages

Avatar

Level 3

AEM forms 6.5 (Centos)

 

Using Decimal, num{z9.99%} does not show percentage after decimal. Input is 0.6503. Should show "65.03%". Shows "65.00%",

 

Docs https://help.adobe.com/en_US/AEMForms/6.1/DesignerHelp/WS92d06802c76abadb-56c02439129b8b00ebc-7ecf.2... 

 

Say it should.

 

I can use a JS solution, but that kind of defeats the purpose.

i.e. (Number(num/100).toLocaleString(undefined,{style: 'percent', minimumFractionDigits:2});)

 

Suggestions?

 

Thanks...Joel

1 Accepted Solution

Avatar

Correct answer by
Employee

@JoelLucuik  I have tested the same using AEM forms designer 6.5 and it's working for me.

Refer to the attached sample

 

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

@JoelLucuik  I have tested the same using AEM forms designer 6.5 and it's working for me.

Refer to the attached sample

 

Avatar

Level 3
Thank you for the sample. Sorry been doing other stuff and haven't been able to check. Using JS solution for now. I'll check this when I get time and Checkmark this.