QuestionQ27

Security and Access

How can an administrator ensure that the correct number of digits is entered in the custom encrypted field created to capture credit card numbers on the Opportunity object?

  • A Create a validation rule to ensure the length.
  • B Use the credit card number mask type.
  • C Define the number of mask characters.
  • D Enter the number of digits at the field level.
Explanation

A validation rule can enforce the required credit-card number length and format at save time. Encrypted-field masking settings only control display masking, while a text field’s configured length is a maximum rather than a full validity check. Salesforce provides a sample validation rule using REGEX to validate a credit card number format.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!