AEM form Numeric field removing Preceding Zeros | Community
Skip to main content
Level 3
April 19, 2023
Solved

AEM form Numeric field removing Preceding Zeros

  • April 19, 2023
  • 1 reply
  • 527 views

Hi All,

 

Numeric AEM form field is stripping preceding zeros fields.

 

How to have preceding zero added in numeric field.

 

 

 

 

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 Vijay_Katoch

Check if you can do anything in script or field pattern.

 

Another alternative is :

Take the text field and add the below script in its change event

 

if(isNaN(xfa.event.change)) xfa.event.change = "";
if(isNaN(xfa.event.prevText)) xfa.event.change = "";

1 reply

Vijay_Katoch
Community Advisor
Vijay_KatochCommunity AdvisorAccepted solution
Community Advisor
April 20, 2023

Check if you can do anything in script or field pattern.

 

Another alternative is :

Take the text field and add the below script in its change event

 

if(isNaN(xfa.event.change)) xfa.event.change = "";
if(isNaN(xfa.event.prevText)) xfa.event.change = "";