Skip to content

formatCNICInput

function formatCNICInput(value): string;

Defined in: input.ts:28

Formats a CNIC as the user types: 35202-1234567-1.

Keeps up to 13 digits (Urdu digits are converted) and inserts the dashes as the groups fill. Other characters are dropped.

Parameter Type Description
value string Current input value

string

Value to show in the input