Decimal value become Zero after submission

Hi,

I updated the number field with the value (0.000001) and saved the form. After the initial submission, the value correctly appeared as (0.000001) in the list and remained (0.000001) when I reopened the form.

However, when I saved the form without making any changes, the number field values in both the list and the form changed to zero.

There are no issues with other values such as (0.001), (0.0001), or (0.00001).
Maybe it automatically rounds off to 5 decimal places.

Attached are screenshots of the form and field configuration for your reference.


image

Thanks in advance
Pannir Veloo

Hi @mnikitina,

Can you help me with this issue? Thanks.

Hi @Pannir,

Try using this code:

fd.rendered(() => {
    fd.field('Number1').widgetOptions = {
        decimals: 8,
        format: 'n8'
    }
});

Hi @IliaLazarevskii

After using the code above, the results are still the same.

Step 1: I have entered "0.00000110" and saved the form (1st save). The value is captured in the list view as well.
image image
Step 2: Select the record and open with editing mode, the value is shown as expected. Then, simply save the form (2nd save) without any change. After saving, the value in the list view changed to "0".
image image
Step 3: Re-open the record in editing mode, the value shows "0.00000000".
image

I already tried the code with and without "Round: True / False". Still the same.
image

The number field is automatically rounded to 5 decimal places after the submission.

Thanks.