We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gpaa-show-place-name.js
1 parent a29b084 commit 37cc078Copy full SHA for 37cc078
gp-address-autocomplete/gpaa-show-place-name.js
@@ -20,5 +20,6 @@ gform.addFilter( 'gpaa_autocomplete_options', function( options ) {
20
21
// Display Place Name
22
gform.addAction( 'gpaa_fields_filled', function ( place, instance, formId, fieldId ) {
23
- jQuery( '#input_{0}_{1}_1'.gformFormat( formId, fieldId ) ).val( place.name ).trigger('change');
+ let $addressLine1 = jQuery( '#input_{0}_{1}_1'.gformFormat( formId, fieldId ) );
24
+ $addressLine1.val( place.name + ', ' + $addressLine1.val() ).trigger('change');
25
} );
0 commit comments