Validar DNI NIF NIE y CIF

Valida campos de DNI, NIF, NIE y CIF utilizando el plugin Contact Form 7 || Validate DNI, NIF, NIE and CIF fields using the Contact Form 7 plugin

Author:Hodei Design (profile at wordpress.org)
WordPress version required:3.9
WordPress version tested:4.0.30
Plugin version:1.1
Added to WordPress repository:07-11-2014
Last updated:12-05-2017
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:46
Rated by:3
Plugin URI:http://www.hodeidesign.com
Total downloads:2 754
Active installs:400+
plugin download
Click to start download

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.