How to restrict decimals in numberfield | Community
Skip to main content
Community Advisor
April 27, 2021
Solved

How to restrict decimals in numberfield

  • April 27, 2021
  • 4 replies
  • 1178 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Anudeep_Garnepudi

@ganthira1 

Try below config

4 replies

Ravi_Pampana
Community Advisor
Community Advisor
April 27, 2021

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!

Anudeep_Garnepudi
Community Advisor
Anudeep_GarnepudiCommunity AdvisorAccepted solution
Community Advisor
April 28, 2021

@ganthira1 

Try below config

AG
arunpatidar
Community Advisor
Community Advisor
April 28, 2021
Nikhil-Kumar
Community Advisor
Community Advisor
April 28, 2021