I am trying to create an input field to enter pin. In mobile devices I want the pin to not be displayed in plain text like the password input field. I found this suggestion in stackoverflow for this but none of it has worked so far
<input type="password" name="PIN" pattern="[0-9]*" inputmode="numeric" style="-webkit-text-security: disc;" required>
Is there a way to achieve this?