Answers.Body: <p>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: <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_validateForm/" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_validateForm/</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-19T09:51:15.193Z
Answers.Text: ok thanks anyway Erik. I wanted it to be "simple" and wasn't willing to write some code.
Answers.UserDisplayName: Guillaume Sorel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-22T12:25:55.630Z
Answers.Text: Is there any update on this? I am looking for this feature too.
Answers.UserDisplayName: Sven Schelfaut
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-19T09:20:15.333Z
Answers.LastActivityDate: 2019-12-19T09:20:15.333Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>I want to record an identification number (only integer number) and it should only have 14 digits. I am thinking of something like this:
  '--- --- --- -----'</p>
  
  <p>Is it possible and how?
  regards,
  Guillaume</p>
  
Tags: <custom-fields>
Title: How to set input mask for a custom field
ThreadText: # How to set input mask for a custom field
  
  (Asked by: username_0 on 2019-12-18)
  
  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,
  username_0
  
  **Tags:** custom-fields
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-12-19. Score: 2 | Accepted answer
  
  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/>
  
  > **Comments:**
  > **username_0**: ok thanks anyway Erik. I wanted it to be "simple" and wasn't willing to write some code.  
  > **username_2**: Is there any update on this? I am looking for this feature too.  
  
  ---
  
  