Depending on your region or device language set, the Numeric Field will capture decimal values separated by a point (.) or a comma (,).
If the numeric field’s value is needed in calculations, you must ensure the separator is a point (.). This can be achieved by either setting the device’s language to one that uses a point to separate numeric decimal values or by replacing the comma with a point using a formula function in the form.
Replacing a character with another in a form can be achieved using one of the following formula functions.
| Function | Example |
|---|---|
SUBSTITUTE({{val}}, 'old_text' , 'new_text') | Substitute new_text for old_text into the given value. e.g., if a field has a value of ‘3,6’, then: SUBSTITUTE({{myfield}}, ',', '.')replaces a comma with a point. |
REPLACE({{val}}, 'old_text' , 'new_text') | Replace the text matched with the text specified in the replacement string. e.g. REPLACE({{input}}, ',', '.')This function is generally used to replace Regular Expressions, but it can achieve the same result as SUBSTITUTE(). |