Forums

Adding password box part fills form on save with userId/pwd

wallyhowe 04 Dec, 2013
I am constructing a registration form in Chronoforms 4 Joomla 3.2.
The fields are name, username, email, password, Verify password, submit.
Ithe password fields are all text boxes it works fine.
When I substitute a Password Box for a test box, then when I save the third textbox (email) contains the username I am logged into the back end with and the password box contains ......he number of dots equals the length of my password.
When the form is displayed on the front end these two fields have those values pre filled in.
On deleting the password box field on the preview and replacing it with a text box it all works again.
On localhost all works fine but if I backup the form and restore it on my hosted site the problem reappears.
GreyHead 04 Dec, 2013
Hi wallyhowe,

It sounds as though your browser may be autocompleting those inputs. Try giving them a different name (i.e. not username and password) and/or turn off autocomplete with the autocomlete='off' attribute, this isn't 100% valid HTML but seems to work in practice. See this Mozilla article.

You'd probably need to use JavaScript or use Custom Element elements to set it though.

Bob
wallyhowe 04 Dec, 2013
Thank you Bob
Follow your reply I used a different browser and all works properly.
Onward......
Wallyhowe
This topic is locked and no more replies can be posted.