diff --git a/module/fid/config/address-collection.php b/module/fid/config/address-collection.php index f94da88e9273a485df4c20b83a5601a7c7b57959..197008c1e4346ecf84b9b9022f6603bbbb5dd71e 100644 --- a/module/fid/config/address-collection.php +++ b/module/fid/config/address-collection.php @@ -51,6 +51,9 @@ return [ 'options' => [ 'label' => 'label_address_0_line_1', ], + 'attributes' => [ + 'autocomplete' => "street-address" + ], ], ], 'line2' => [ @@ -59,7 +62,7 @@ return [ 'type' => Text::class, 'options' => [ 'label' => 'label_address_0_line_2', - ] + ], ], ], 'zip' => [ @@ -69,6 +72,9 @@ return [ 'options' => [ 'label' => 'label_address_0_zip', ], + 'attributes' => [ + 'autocomplete' => "postal-code" + ], ], ], 'city' => [ @@ -78,6 +84,9 @@ return [ 'options' => [ 'label' => 'label_address_0_city', ], + 'attributes' => [ + 'autocomplete' => "address-level2" + ], ], ], 'country' => [ diff --git a/module/fid/config/user-create-form.php b/module/fid/config/user-create-form.php index 9a32a6917aed5231d1a543329b1bde7b33cfa882..1966695a5d3b32f62634c07bcb08881478bc7254 100644 --- a/module/fid/config/user-create-form.php +++ b/module/fid/config/user-create-form.php @@ -115,6 +115,7 @@ return [ ], 'attributes' => [ 'required' => true, + 'autocomplete' => "given-name" ], ], ], @@ -127,6 +128,7 @@ return [ ], 'attributes' => [ 'required' => true, + 'autocomplete' => "family-name" ], ], ], @@ -156,6 +158,7 @@ return [ ], 'attributes' => [ 'required' => true, + 'autocomplete' => 'organization-title' ], ], ], diff --git a/module/fid/config/user-init-form.php b/module/fid/config/user-init-form.php index 5ab7b2f2bb041100a9a2a0fb2c4478f205d769a8..61202452f589404b7376d77c8e2f86bda8670012 100644 --- a/module/fid/config/user-init-form.php +++ b/module/fid/config/user-init-form.php @@ -38,6 +38,7 @@ return [ 'elements' => [ 'username' => [ 'spec' => [ + 'id' => 'username', 'name' => 'username', 'type' => Email::class, 'options' => [ @@ -45,11 +46,13 @@ return [ ], 'attributes' => [ 'required' => true, + 'autocomplete' => 'email' ], ], ], 'username_confirmation' => [ 'spec' => [ + 'id' => 'username_confirmation', 'name' => 'username_confirmation', 'type' => Email::class, 'options' => [ @@ -57,6 +60,7 @@ return [ ], 'attributes' => [ 'required' => true, + 'autocomplete' => 'email' ], ], ], @@ -69,6 +73,7 @@ return [ ], 'attributes' => [ 'required' => true, + 'autocomplete' => "given-name" ], ], ], @@ -81,6 +86,7 @@ return [ ], 'attributes' => [ 'required' => true, + 'autocomplete' => "family-name" ], ], ], diff --git a/module/fid/config/user-update-form.php b/module/fid/config/user-update-form.php index 067e4686eb64d314d61c8eee0e8fd5a546053b16..c4d653b86b5add96ffc4b2fc1ae9875cbd401e36 100644 --- a/module/fid/config/user-update-form.php +++ b/module/fid/config/user-update-form.php @@ -78,6 +78,7 @@ return [ ], 'attributes' => [ 'required' => true, + 'autocomplete' => "given-name" ], ], ], @@ -90,6 +91,7 @@ return [ ], 'attributes' => [ 'required' => true, + 'autocomplete' => "family-name" ], ], ], @@ -111,7 +113,7 @@ return [ 'type' => Text::class, 'options' => [ 'label' => 'label_college', - ] + ], ], ], 'addresses' => require 'address-collection.php',