I want to record an identification number (only integer number) and it should only have 14 digits. I am thinking of something like this: '--- --- --- -----'

Is it possible and how? regards, Guillaume


Not in the UI afaik. I would use the validateForm hook in an extension to validate the number of digits? Documentation on the hook is here: https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_validateForm/

| improve this answer | |
  • ok thanks anyway Erik. I wanted it to be "simple" and wasn't willing to write some code. – Guillaume Sorel Dec 19 '19 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.