• USREC

    (@hawaiirealestate)


    Required not Working
    Using
    [gmautocomplete* Address default:get placeholder=”Enter Address”]

Viewing 1 replies (of 1 total)
  • I was able to get required validation working.

    In /includes/GWAA_Display.php

    Line 11, change to:

    add_action( 'wpcf7_validate_gmautocomplete*', array($this, 'GWAA_products_validation_filter'), 10, 2 );

    Line 80, change to:

    <div class="wpcf7-form-control-wrap <?php echo sanitize_html_class( $tag->name )?>" data-name="<?php echo esc_attr( $tag->name ); ?>">

    Line 209, change to:

    public function GWAA_products_validation_filter( $result, $tag ){

    Line 211, remove:

    $tag = new WPCF7_Shortcode( $tag );
Viewing 1 replies (of 1 total)
  • The topic ‘Required* not Working’ is closed to new replies.