Notice how I added the autocomplete part to the last array. That array is used to add specific attributes and their value to the field.
I have to point out that you now have added an autocomplete="email" to a Text Area fields so likely meant to contain the message and not an email.
The email input is
<?php echo $form->email('p_email')?>
Having said so, that email field is recognized as an email field by all browsers and screen readers so I am not sure what adding autocomplete="email" to it would do in terms of accessibility.
Having said so, that email field is recognized as an email field by all browsers and screen readers so I am not sure what adding autocomplete="email" to it would do in terms of accessibility.
Didn’t know that. So i’m not going to add ‘autocomple’ to the email input.