Filename: gpaa-trim-us-zip-codes.js
gpaa-trim-us-zip-codes.js
/** * Gravity Perks // Address Autocomplete // Trim US Zip Codes to First 5 Digits * https://gravitywiz.com/documentation/gravity-forms-address-autocomplete/ * * Instructions: * * 1. Install this snippet with our free Custom JavaScript plugin. * https://gravitywiz.com/gravity-forms-code-chest/ */ gform.addFilter( 'gpaa_values', function( values, place ) { values.postcode = values.postcode.split( '-' )[0]; return values; } );
Your email address will not be published. Required fields are marked *
Comment *
Notify me of followup comments via e-mail
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.
Δ