Adding slash in number formatting

Hi,

I would be grateful if you could give me a hint on how to create a default number that includes a slash mark in a number field in the form as follows:
2019/
I want the CHW to type a 4 digit number after 2019/, i.e, I want 2019/ to come as default number so that the CHW does not have to type it every time she fills the form.

Thanks

Hi,

There are two options for this:

  1. You can use the Default Value field to enter this prefix. You’ll need to put quotation marks around the default expression here. You won’t be able to restrict inputs to numbers, and would need to use a regular expression for validaiton

  2. You can have users enter a 4 digit number through a Numeric ID / Phone number field, then make a hidden value calculation which concat()'s together your prefix and the user entered value.

I’m guessing #2 is a better fit for the user experience

1 Like

Thank you for your explanation, Clayton. You have been a real help.