Fields
Input Mask

Input-mask field

Display type

  • input-mask

Config

NameDescriptionNotes
maskMask string.Details here (opens in a new tab)
maskCharCharacter to cover unfilled parts of the mask. Details here (opens in a new tab)Default character is "_"
formatCharsDefines format characters with characters as a keys and corresponding RegExp strings as a values.Details here (opens in a new tab)

Basic example

Schema details

{
fields
:
[
0
:
{
name
:
"aadhaar_header"
prop
:
NULL
meta
:
{
displayType
:
"header"
displayName
:
"Aadhaar Card"
}
}
1
:
{
name
:
"aadhaar_number"
meta
:
{
config
:
{
mask
:
"9999-9999-9999"
maskChar
:
""
placeholder
:
"e.g. 1681-1111-1234-1123"
}
displayType
:
"input-mask"
displayName
:
"Aadhaar Number"
validation
:
{
required
:
true
infoDetail
:
{
…
}
}
}
}
]
}

Reference

Star us at github

© Copyright 2023 MuiForms