calin009 Posted March 24, 2015 Share Posted March 24, 2015 Hi, Is there a way how to disable DNI field Validation or edit to accept spaces and other characters ? Wich file and how should I edit it ? Thank you Link to comment Share on other sites More sharing options...
calin009 Posted April 28, 2015 Author Share Posted April 28, 2015 Sorry......nobody..?!? is that so difficult ? Link to comment Share on other sites More sharing options...
Courage2000 Posted April 9, 2020 Share Posted April 9, 2020 (edited) This is a big problem for Romanian companies, with Reg Com I also need a solution for this The format of the DNI is J40/number/year ex: j40/23232/2018 Edited April 9, 2020 by Courage2000 (see edit history) Link to comment Share on other sites More sharing options...
Courage2000 Posted April 9, 2020 Share Posted April 9, 2020 For 1.7.6.x the dni format for Romanian Companies (j40/2222/2019) to be accepted is edit /classes/validate.php Find empty($dni) || (bool) preg_match('/^[0-9A-Za-z-.]{1,16}$/U', $dni); Replace with return empty($dni) || (bool) preg_match('/^[A-Z0-9\/]{1,16}$/i', $dni); From here Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now