Freelance › Projects › Texts and translation › Add instant INN and OGRN format validation to an input form
Add instant INN and OGRN format validation to an input form

Employer
Andriy
Project parameters
Type of cooperationOne-time project
SectionTexts and translation
Prepaymentwithout prepayment
Payment methodsCash, Bank transfer
Acceptance of requestsfrom today, 04:35 until Sep 6, 2026
Project description
I run a form where clients and partners enter their company details, and right now the INN and OGRN fields accept literally any string of digits. People mistype a digit or paste a value with an extra space, and the mistake only surfaces later when someone checks the record manually or an accounting system rejects it. I want to close this gap at the point of entry, before a bad number ever reaches the database.
The task is to add format validation to these two fields directly in the form: correct length for personal and legal-entity INN, correct length for OGRN and OGRNIP, and a real control-sum check using the standard weighted-coefficient algorithm, so an obviously fake or mistyped value is caught immediately, not just numbers of the wrong length. While the person is typing, the field should visually flag an invalid value right away, and the submit button should stay disabled until every required field passes validation. This is purely a format and checksum check performed inside the form itself, with a matching check repeated on the server; no lookup against an external registry is needed.
What matters to me:
— instant feedback while typing, not only on submit
— correct handling of both individual and legal-entity number lengths
— a genuine checksum check, not just a digit-count check
— edge cases covered: leading zeros, pasted values with spaces or dashes, autofill quirks
The task is to add format validation to these two fields directly in the form: correct length for personal and legal-entity INN, correct length for OGRN and OGRNIP, and a real control-sum check using the standard weighted-coefficient algorithm, so an obviously fake or mistyped value is caught immediately, not just numbers of the wrong length. While the person is typing, the field should visually flag an invalid value right away, and the submit button should stay disabled until every required field passes validation. This is purely a format and checksum check performed inside the form itself, with a matching check repeated on the server; no lookup against an external registry is needed.
What matters to me:
— instant feedback while typing, not only on submit
— correct handling of both individual and legal-entity number lengths
— a genuine checksum check, not just a digit-count check
— edge cases covered: leading zeros, pasted values with spaces or dashes, autofill quirks