Plugin que te permitirá incluir un campo de texto en tu formulario de Contact Form 7 para validar campos de DNI, NIF, NIE y CIF.
Funcionamiento:
Si el usuario que rellena el formulario no introduce un DNI, NIF, NIE o CIF válido, al pulsar sobre el botón "Enviar" el sistema le devolverá un error de validación.
Los números de DNI, NIF, NIE o CIF deben introducirse sin guiones ni espacios y las letras pueden estar en mayúsculas o en minúsculas:
- Algunos ejemplos válidos: 123456789A || 123456789a || A123456789 || a123456789 || ab123456789
- Algunos ejemplos no válidos: 123456789-A || 123456789 a || a-123456789
Cómo crear un campo de validación en Contact Form 7:
Para poder introducir en Contact Form 7 un campo para validar un DNI, NIF, NIE o CIF, es necesario utilizar una de las siguientes etiquetas:
- Si quiere que el campo sea obligatorio: [text* identidad]
- Si no quiere que el campo sea obligatorio: [text identidad]
Para más información visita la
página del plugin.
English
That Plugin will allow you to include a text field in your Contact Form 7 to validate a Spanish's DNI, NIF, NIE and CIF fields.
The operation is as follows:
If the user do not enter a valid DNI, NIF, NIE or CIF and press the "Send" button, the system will return an error ("Validation Error").
The DNI, NIF, NIE or CIF should be entered without dashes or spaces and letters can be uppercase or lowercase:
- Valid examples: 1123456789A || 123456789a || A123456789 || a123456789 || ab123456789
- Invalid examples: 123456789-A || 123456789 a || a-123456789
What should I do to create a validation field in Contact Form 7?
You must use one of the following tags:
If you want a required field: [text * identidad]
If you do not want a requiered field: [text identidad]
For more information visit
plugin's website.