Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Change numberic display pattern at runtime

Avatar

Former Community Member

Hey all, I was just wondering if it was possible to change a numeric field's display pattern at runtime. I found that you can do it with date fields but i can't seem to find the documentation on how to do it in JS for numberic fields.

Thanks

2 Replies

Avatar

Level 10

Hi,

You can by accessing the .format.picture.value property.

Example here - specifically on page2: https://acrobat.com/#d=oiBmDd1otU7KnitfXw-9tg

Hope that helps,

Niall

Avatar

Former Community Member

Awesome, thx for the link. I had tried this before but it hadn't worked, but now it does. Oh the mysteries of LC!

Thx again