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.

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