diff --git a/php/classes/class-qsm-contact-manager.php b/php/classes/class-qsm-contact-manager.php index 9d20c9cb8..b3970bef3 100644 --- a/php/classes/class-qsm-contact-manager.php +++ b/php/classes/class-qsm-contact-manager.php @@ -397,7 +397,7 @@ public static function generate_contact_field( $field, $index, $quiz_options, $d } // Filer Value if ( empty( $contact_disable_autofill ) ) { - $default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'] ); + $default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'],$quiz_options ); $fieldAttr .= " value='" . esc_attr( $default_value ) . "' "; } else { $fieldAttr .= " autocomplete='off' "; @@ -433,7 +433,7 @@ public static function generate_contact_field( $field, $index, $quiz_options, $d case 'email': // Filer Value if ( empty( $contact_disable_autofill ) ) { - $default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'] ); + $default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'],$quiz_options ); $fieldAttr .= " value='" . esc_attr( $default_value ) . "' "; } else { $fieldAttr .= " autocomplete='off' "; @@ -461,7 +461,7 @@ public static function generate_contact_field( $field, $index, $quiz_options, $d case 'date': // Filer Value if ( empty( $contact_disable_autofill ) ) { - $default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'] ); + $default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'],$quiz_options ); $fieldAttr .= " value='" . esc_attr( $default_value ) . "' "; } else { $fieldAttr .= " autocomplete='off' ";