From 42a61416bce460f3de66f77f97a1ba4bc50044f5 Mon Sep 17 00:00:00 2001 From: coryarobbins <31231547+coryarobbins@users.noreply.github.com> Date: Fri, 21 Feb 2025 17:34:48 -0600 Subject: [PATCH 1/2] Update gpaa-single-line-as-input.php Added instructions on how to use the snippet for multiple address fields. --- gp-address-autocomplete/gpaa-single-line-as-input.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gp-address-autocomplete/gpaa-single-line-as-input.php b/gp-address-autocomplete/gpaa-single-line-as-input.php index ee261a14a..23f4e095f 100644 --- a/gp-address-autocomplete/gpaa-single-line-as-input.php +++ b/gp-address-autocomplete/gpaa-single-line-as-input.php @@ -7,6 +7,8 @@ * * Use a Single Line Text field as autocomplete input and populate the Single Line Text field with the full address. * + * Supports multiple address fields by adding multiple configuration blocks at the end of the snippet. + * * Note: This snippet will require the user to make a selection from the auto-suggested addresses. * * Plugin Name: GP Address Autocomplete - Use Single Line Text field as Autocomplete Input @@ -130,10 +132,12 @@ public function is_applicable_form( $form ) { } -// Configuration +// Duplicate then modify the next 7 lines to add another address field +// Configuration for the first address field new GPAA_Single_Line_Input( array( 'form_id' => 123, // The ID of your form. 'address_field_id' => 4, // The ID of the Address field. 'single_line_field_id' => 5, // The ID of the Single Line Text field. // 'use_full_address' => true, // Uncomment to use the full street address if you don't want an abbreviated street address. ) ); + From 4b7a0b0ad3396f4b9ecc633d319c3939c1031f47 Mon Sep 17 00:00:00 2001 From: David Smith Date: Sat, 22 Feb 2025 08:34:55 -0500 Subject: [PATCH 2/2] Update gp-address-autocomplete/gpaa-single-line-as-input.php --- gp-address-autocomplete/gpaa-single-line-as-input.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gp-address-autocomplete/gpaa-single-line-as-input.php b/gp-address-autocomplete/gpaa-single-line-as-input.php index 23f4e095f..8a348e321 100644 --- a/gp-address-autocomplete/gpaa-single-line-as-input.php +++ b/gp-address-autocomplete/gpaa-single-line-as-input.php @@ -132,6 +132,8 @@ public function is_applicable_form( $form ) { } +# Configuration + // Duplicate then modify the next 7 lines to add another address field // Configuration for the first address field new GPAA_Single_Line_Input( array(