-- SUMMARY --

This module provides a validation field for Saudi national number ,, Saudi or none-Saudi(Iqama) ,, algorithm validation was designed by Eng.Abdul-Aziz Al-Oraij @top7up ,, which can be used with any entities(Node, User, ect).

-- CONFIGURATION --

  • Go to (Home » Administration » Structure) then 'manage fields'
    choose your content type add a field of type 'Saudi identity'
    then just complete its configuration ,, this can go for any entity.
  • You can limit validation of the field for Saudis ID only, Or residents
    or even both of them in every field you find the options under
    'Saudi/Iqama Validator' in field settings.

-- INSTALLATION (Drupal 8) --
Since this module relay on a 3rd party class to calculate and validate the Saudi ID number, you have to use composer when install this module to autoload the needful class automatically. So, please use this command to install this module for Drupal 8:
composer require drupal/saudi_identity_field

-- ROADMAP --
[ ] Enhance validation error messages.
[ ] Implement unique option per field.

Supporting organizations: 

Project information

Releases