You should avoid using write-only fields in your forms as much as possible. Write-only fields do not display the text typed by the user. Instead, these fields replace each character with an asterisk. They are frequently used to allow users to enter sensitive information, such as passwords. However, some screen readers will read the true text of these fields instead of the replacement characters. To protect the privacy of your users, you should avoid using write-only fields wherever possible.
No example provided.
Exceptions to this practice
If your forms require a write-only field to allow users to enter sensitive information, you should consider creating a compute that turns the write-only field invisible once it has been filled in. Screen readers ignore invisible fields and therefore cannot inadvertently reveal data contained in an invisible field.
Furthermore, you should advise your screen reader users to wear headphones while completing forms containing sensitive information. This ensures that personal information cannot be overheard when it is read aloud by the screen reader.