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

How to restrict decimals in numberfield

Avatar

Community Advisor

I am using coral numberfield in dialog.Is there any option to restrict the decimals in it?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
4 Replies

Avatar

Community Advisor

Hi,

 

Check the below url using granite:data regex we can add restrictions

 

https://aemlab.blogspot.com/2019/05/aem-touch-ui-component-dialog-field.html

 

Hope this helps!

Avatar

Correct answer by
Community Advisor

@Ganthimathi_R 

Try below config

Screenshot 2021-04-28 at 12.29.09 PM.png