Skip to content

pakdatakit/input

Type Alias Description
InputState State of a form field while the user is typing.
Function Description
formatCNICInput Formats a CNIC as the user types: 35202-1234567-1.
checkCNICInput Checks a CNIC while the user is typing. See InputState.
formatPhoneInput Formats a Pakistani mobile number as the user types: 0300-1234567, or +92 300 1234567 when the user starts with the country code.
checkPhoneInput Checks a Pakistani mobile number while the user is typing. The 03XX prefix is checked as soon as it is complete. See InputState.
formatIBANInput Formats an IBAN as the user types: uppercase, in groups of four (PK36 SCBL 0000 0011 2345 6702), up to 24 characters.
checkIBANInput Checks a Pakistani IBAN while the user is typing: the PK prefix, check digits and bank code are checked as they are typed, and the full checksum once all 24 characters are in. See InputState.