• En la función custom_identidad_form_tag_handler al final hay que cambiar:

    <span class="wpcf7-form-control-wrap %1$s">
    <span class="wpcf7-form-control-wrap %1$s" data-name="%1$s">

    Yo he a?adido algunas cosas más como los atributos que estan propios del contact form.

    $atts['aria-required'] = $tag->is_required() ? 'true' : 'false';
    if ( $validation_error ) {
    			$atts['aria-invalid'] = 'true';
    			$atts['aria-describedby'] = wpcf7_get_validation_error_reference(
    				$tag->name
    			);
    		} else {
    			$atts['aria-invalid'] = 'false';
    		}
    

    Y tambien en la función cf7_validacion_nif_cif_nie he a?adido uno if:

    if ($tag->is_required() && $identidad == '') {
    $results->invalidate($tag, wpcf7_get_message('invalid_required'));
    				}

    Esto para campos obligatorios.

    The page I need help with: [log in to see the link]

  • The topic ‘Solucionado Validación’ is closed to new replies.