Access Cards Must Have Set Number of Digits
  • 14 Mar 2024
  • 1 Minute to read
  • Dark
    Light

Access Cards Must Have Set Number of Digits

  • Dark
    Light

Article summary

This rule lets you control the number of digits required for all access cards you add to customers from the Admin Panel.

It is useful if your access cards have a set number of digits and you want to avoid any mistakes or typos when admins add cards to a customer's account.


  1. Log in to dashboard.nexudus.com if you aren't already.

  2. Click Add rule

  3. Click on Manual entry

  4. Name your validation rule.

  5. Add a Description for your rule to let other admins know what it does at a glance.

  6. Toggle on This rule is active.

  7. Select Customer as the rule's Record type.

  8. Add the Error message to display if the validation rule is not met.

  9. Add the following code snippet to the Formula field.

record.AccessCardId = null OR record.AccessCardId.Length = x
  1. 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
  1. Click the Save Changes button.


All done! We recommend trying to assign an access card to a 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.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence