Hi Team,
In my cq:dialog I have a field with following details:
<answerScore jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/numberfield"
fieldDescription="Select Score value for this Answer."
fieldLabel="Answer Score" name="./answerScore"
required="{Boolean}true"
min="{Double}-1"
max="{Double}10"
step="{Double}0.0001"/>
It works fine for most of the values but fails for value 2.05. Is there anything I am doing wrong?
Thanks in advance!!
Solved! Go to Solution.
Views
Replies
Total Likes
Even I see issue using granite/ui/components/coral/foundation/form/numberfield, working as expected using granite/ui/components/foundation/form/numberfield. Give a try.
the step attribute is type of string not double. can you check that https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/granite-ui...
The step should be a string as per the granite numberfield resource type.
step="{String}0.0001"
Hi @Volga_Dharam_Rakshika
You can use the step as "any" of type String and it will resolve the issue.
https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/granite-ui...
Hope this helps!
Thanks!
@Volga_Dharam_Rakshika
That's an issue with the coral 3 number field. So you might need to go with granite number field for now to resolve the issue.
granite/ui/components/foundation/form/numberfield
Thanks!
Even I see issue using granite/ui/components/coral/foundation/form/numberfield, working as expected using granite/ui/components/foundation/form/numberfield. Give a try.
Views
Like
Replies