Hi All, I'm fairly new to Survey123 and running into a problem. In a survey, we have a field that needs to be entered by the user, using a specific format of 1 to 3 digits, and 3 decimals. Like this: 12.345 or 251.837 or 0.536. The 3 decimal places are mandatory, but the first 3 digits are optional. Also, we are in the Netherlands, so the decimal separator could be entered as a comma. Ideally, I would like to have the value converted to a value with a dot as decimal separator, or perhaps only accept the . and display a message when the entered value does not match the format of *0.000.
I have tried input mask, but that doesn't allow the first 3 digits to be optional. When used 9.999, it won't allow 12.345 and when used 999.999 as a mask, we need to enter 012.345.
I have also tried using a regex(., '^[0-9]{1,3}\.[0-9]{3}$'), but this way the 3 decimals are not mandatory and when a comma is used as the decimal separator, it does not work at all.
Is there any way to make this work?
I look forward to your replies, many thanks in advance!
Cheers, Jelle.