Answers.Body: <p>It's greyed out because changing the type could create lots of issues.  Instead, create a new field of the right type and copy existing data to it.</p>
  <p>If you use Alphanumeric you can set the Database Field Length to 8.  That will limit it to 8 characters.  If you want to enforce the digits only restriction then try <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_validateForm/" rel="nofollow noreferrer">hook_civicrm_validateForm</a> - see the example on that page.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-20T17:26:53.693Z
Answers.Text: Worked perfect! I simply deleted the field and then redid it with your recommendations! Thanks!
Answers.UserDisplayName: Paul Williams
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-19T21:29:44.407Z
Answers.LastActivityDate: 2022-05-19T21:29:44.407Z
Answers.UserDisplayName: Aidan
Body: <p>I need to edit a Custom Field Type (which is greyed out) from Numeric to something that allows me to enter 8 numeric digits only. Currently, it adds a comma. I guess I need integer or something. Thanks!</p>
  
Tags: <wordpress><custom-fields>
Title: Edit Custom Field Type
ThreadText: # Edit Custom Field Type
  
  (Asked by: username_0 on 2022-05-19)
  
  I need to edit a Custom Field Type (which is greyed out) from Numeric to something that allows me to enter 8 numeric digits only. Currently, it adds a comma. I guess I need integer or something. Thanks!
  
  **Tags:** wordpress, custom-fields
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-05-19. Score: 2 | Accepted answer
  
  It's greyed out because changing the type could create lots of issues. Instead, create a new field of the right type and copy existing data to it.
  
  If you use Alphanumeric you can set the Database Field Length to 8. That will limit it to 8 characters. If you want to enforce the digits only restriction then try [hook\_civicrm\_validateForm](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_validateForm/) - see the example on that page.
  
  > **Comments:**
  > **username_0**: Worked perfect! I simply deleted the field and then redid it with your recommendations! Thanks!  
  
  ---
  
  