The following section explains what an Input Mask is and how it can be used in ActivityInfo.
The Input Mask property is available for Text fields and can be used to constrain what users type in a Field when adding records.
It can be used to make sure that users enter certain digits or letters. This can be useful if you have a Field with administrative codes, for example.
When adding Records, as users type in the Field that has an Input Mask, the data entered will automatically get validated and the Field will turn red if the data entered do not match the Input Mask and green if they do.
The following table shows the characters that can be used to create an Input Mask and their explanation.
|0||User must enter one digit (0 to 9)
|00||User must enter two digits (0 to 9)
|L||User must enter a letter|
|LL||User must enter two letters
|A||User must enter a letter or a digit
|\||Character immediately following will be displayed literally
The following table shows examples using an Input Mask and their explanation.
|Family Registration Number||\1-00000000||The 1- is always fixed the rest of the digits can be different|
|Case worker Initials||AAA||Initials have to be 3 letters long|
|Case worker ID||000||ID has to be 3 digits|
|Administrative number||2017-00-000||The 2017- is fixed the rest of the numbers can be changed.|