--- title: "Access Cards Format " slug: "access-cards-format" updated: 2024-03-14T11:31:21Z published: 2024-03-14T11:31:21Z canonical: "help.nexudus.com/access-cards-format" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://help.nexudus.com/llms.txt > Use this file to discover all available pages before exploring further. # Access Cards Must Have Set Number of Digits This rule lets you control the number of digits required for all access cards you add to {{variable.customers}} from the {{variable.AdminPanel}}. It is useful if your access cards have a set number of digits and you want to avoid any mistakes or typos when {{variable.admins}} add cards to a {{variable.customer}}'s account. * * * 1. {{snippet.FirstStepProcedure}} 2. {{snippet.ValidationRules_Path}} 3. {{snippet.AddValidationRule_Step}} 4. {{snippet.ManualEntry_Step}} 5. {{snippet.NameValidationRule_Step}} 6. {{snippet.DescriptionValidationRule_Step}} 7. {{snippet.ActivateValidationRule_Step}} 7. {{variable.SELECT}} **Customer** as the rule's **Record type**. 8. {{snippet.ErrorMessageValidationRule_Step}} 9. {{snippet.FormulaValidationRule_Step}} ``` record.AccessCardId = null OR record.AccessCardId.Length = x ``` 9. Replace the **x** after **record.AccessCardId.Length =** with the number of digits you require for access cards. *In the example below, we added 10, meaning all access cards that we try to register for customers must be 10 digits.* ``` record.AccessCardId = null OR record.AccessCardId.Length = 10 ``` 10. {{snippet.Save_Changes}} * * * All done! We recommend trying to assign an access card to a {{variable.customer}} using the wrong number of digits to test your rule. If you see your error message displayed as you try to save your changes, you're good to go.