spivurno
1/6/2017 - 1:31 PM

Gravity Wiz // Gravity Forms // Set Input Type as Tel

Gravity Wiz // Gravity Forms // Set Input Type as Tel

<?php
/**
 * Gravity Wiz // Gravity Forms // Set Input Type as Tel
 * http://gravitywiz.com/
 */
add_filter( 'gform_field_content_723_10', 'gw_set_tel_input_type' );
function gw_set_tel_input_type( $input ) {
	$input = preg_replace( "/type='[\\w]+'/", "type='tel'", $input );
	return $input;
}