Skip to content

UidInput

Validate and format the nine digits of a Swiss CHE business identifier.

alpina-ui/swiss/uid-input

Interactive preview

CHE followed by nine digits, including the check digit.

Usage notes

Collect a CHE business identifier with its modulo-11 check digit. A valid entry is grouped on blur. Pass validationMessage to localize the native validation error.

When to use

Collect the Swiss enterprise identification number from a supplier’s registration details.

When to avoid

Use AhvInput for a person’s social insurance number. A UID checksum alone cannot establish an enterprise’s current VAT registration.

Accessibility

Expand the abbreviation in the label or hint and associate the checksum feedback with the field. Keep the CHE prefix visible in the example.

Keys
KeyAction
Tab / Shift+TabEnter or leave the field. A valid identifier is formatted when focus leaves.
Text editingType, select, paste and correct the value with the platform’s editing keys.

Content

Use the national abbreviation familiar to the reader. Present the business identifier separately from any VAT suffix.

Use
Enterprise ID · CHE-xxx.xxx.xxx
Avoid
VAT status verified

Copy in four languages

German
Unternehmens-Identifikationsnummer34 characters
French
Numéro d’identification des entreprises39 characters
Italian
Numero d’identificazione delle imprese38 characters
Romansh
Numer d’identificaziun da las interpresas41 characters
Add to your project
npx --no-install alpina add uid-input