Integer user form field with min 11 digits and max 11 digits I need an integer form field with has a validation of min 11 digits and max 11 digits. In other words; the user has to fill in an 11 digit code.

How do i make this field and validation?

Update:

I managed the field by setting a min of 10000000000 and max of 99999999999. But now i get this validation message:


  RIZIV number: the value may be no greater than 99999999999.


How do i change this validation/error message to something like:


  Fill in your right 11 digits RIZIV number.
Go to admin/config/people/accounts/fields add an integer field and set the limitations and by hook_user_update you can check the validation after saving the user profile.