First I am not trying to circumvent the browsers auto complete functionality. Happy for auto complete to save and populate a password.
My form contains 3 inputs
- Quantity
- Phone number (optional)
- Password
Currently on submission the quantity or phone number gets saved as the username. Ideally I would save the users email address. However this is not part of the form and I do not wish it to be visible but I can populate it from the server.
How do I go about doing this?
Also happy if chrome just saves the password with no associated username if thats a thing?
Things Ive tried:
- Created a hidden input element before the password containing an email address. - No luck
- Created a hidden empty password input element before the real password input. - No luck (Prevent Chrome from prompting to save password from input box?)
Created a hidden empty password input element before the real password input. - No luck