Copy link to clipboard
Copied
Hi,
sorry for my English.
I would like to know if it is posible, in a form, if can be limited the numbers of decimals.
For expamle, if the user insert : 2,25, he cant insert more decimals, becuase the limit is 2.
Thanks!!!
Copy link to clipboard
Copied
The Format setting only determines how the value of the field is displayed, not its actual value.
In order to do that you can use the following code as the field's custom Calculation or Validation script:
if (event.value) event.value = Number(event.value).toFixed(2);
Copy link to clipboard
Copied
i am usisng thius:
but the proble is, visually is correct, but really if user insert 3 decimals its allow:
Visually:
But in really, the form send:
This is a problem for me....
Thanks
Copy link to clipboard
Copied
The Format setting only determines how the value of the field is displayed, not its actual value.
In order to do that you can use the following code as the field's custom Calculation or Validation script:
if (event.value) event.value = Number(event.value).toFixed(2);
Copy link to clipboard
Copied
set limit number of characters
Copy link to clipboard
Copied
That's not a good solution. What if the number should be 123.456,56 ?
Copy link to clipboard
Copied
Yes ,sry I read something else, thought he want to limit number input.
Copy link to clipboard
Copied
Is there any way i can use custom number seperator for calculated field
Usually numebr formats have seperator 9,999,999.00
& i want to change it to 9,99,99,999.00
Do i need to use javascript or is there any other way to do get required numeric display pattern
Find more inspiration, events, and resources on the new Adobe Community
Explore Now