gppa_ajax_form_field_values (JS)
Description
Filter the AJAX form field values used when dynamically refreshing fields and Live Merge Tags.
Usage
gform.addFilter( 'gppa_ajax_form_field_values', 'my_custom_function' );
Parameters
Examples
Require input to not have smart (curly) quotes, convert it to straight quotes instead.
window.gform.addFilter( 'gppa_ajax_form_field_values', function( elVal, elName ) {
if ( /[''""″]/.test( elVal ) ) {
elVal = elVal.replace( /'|’/g, "'" ).replace( /"|"|″/g, '"' );
}
return elVal;
} );
Since
This JavaScript filter is available since Gravity Forms Populate Anything 2.1.11