Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM Number Field with decimal value as Zero

Avatar

Avatar
Ignite 1
Level 2
vasgurug
Level 2

Likes

3 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Give Back
Boost 3
Boost 1
View profile

Avatar
Ignite 1
Level 2
vasgurug
Level 2

Likes

3 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Give Back
Boost 3
Boost 1
View profile
vasgurug
Level 2

13-12-2020

Hi,

 

While authoring AEM dialog with number field, The decimal values it's rounding off... only If the decimal value is "zero"

Ex: if we enter 13.0 rounding off to 13

13.00 rounding off to 13

 

Is it possible to keep the same value(Whatever authored) as 13.0/13.00 instead of 13 using the number field? 

View Entire Topic

Avatar

Avatar
Springboard
MVP
Suraj_Kamdi
MVP

Likes

142 likes

Total Posts

156 posts

Correct Reply

41 solutions
Top badges earned
Springboard
Validate 1
Establish
Contributor
Ignite 3
View profile

Avatar
Springboard
MVP
Suraj_Kamdi
MVP

Likes

142 likes

Total Posts

156 posts

Correct Reply

41 solutions
Top badges earned
Springboard
Validate 1
Establish
Contributor
Ignite 3
View profile
Suraj_Kamdi
MVP

15-12-2020

@vasgurug 

Use the following properties

sling:resourceType="granite/ui/components/coral/foundation/form/numberfield"
step="any"
min="0"
typeHint="double"