Hi @SmrithiGo,
Thank you for reaching out! I've looked into the issue you're experiencing with the Numeric Box component on AEM 6.5.24, and I have two workarounds that should resolve this for you.
This is a known validation behaviour in the Foundation Components where the "multiple of 1" constraint on the Default Value field is not re-evaluated when switching the Data Type to Decimal.
To fix the issue you can refer to one of the below 2 options:
Option 1 – Set the Default Value via Initialize Script
Leave the Default Value field empty in the component dialog to avoid the validation error, then set the value programmatically using the field's Initialize event:
1. Open the Script Editor on your Numeric Box field.
2. Select the Initialize event.
3. Add the following script:
this.value = 10.001;
(Replace 10.001 with your desired default value.)
This will set the decimal value as soon as the form loads.
Option 2 – Set the Default Value Directly via CRXDE Lite
This option bypasses the dialog validation entirely by editing the value directly in the JCR repository:
1. Navigate to CRXDE Lite (http://<host>:<port>/crx/de).
2. Browse to the JCR node for your Numeric Box field within your Adaptive Form.
3. Locate the property defaultValue.
4. Set it directly to your desired decimal value (e.g. 10.001) as a String type.
5. Click Save All.
This is the quickest option and takes effect immediately without any code changes.
Please try either of these approaches and let me know if you have any questions or run into any issues. Happy to assist further!
Thanks
Pranay