michaeltee
Forum Replies Created
-
Hi Patrick,
The way we wanted to use the passwords field was not so much to register a new user (we had already created a registration form, and it’s working fine), instead, we’re trying to create a My Account form to serve logged in users who may wish to update their password, username etc.
Currently, we are trying to setup two forms, one for user profile details (containing first name, last name, username, and email fields) and another form for the purpose of updating the password (current password, new password, and confirm password fields). We are then adding both these forms to a single page called ‘My Account’. Although they’re combined on the page, they are sectioned off so as to indicate two separate functions (which they are).
The reason we are now doing it this way is mainly due to the fact that we are unable to have pre-fill meta data and password functionality on a single form.
So the problem for us now is how to have the password section (current password, new password, and confirm password fields) hide the keystrokes as the user is typing, how to check if the user has entered the current password correctly and, how to check or compare the ‘confirm password’ field against the ‘new password’ field for a possible mismatch? It’s the only roadblock we now have. Everything else is working great (we also use the quiz functionality on our site, which is awesome).
I hope this makes sense.
Best,
MichaelHi Saurabh,
Thanks for getting back to me!
As requested, I’ve exported the form and my custom pre-population snippet so you can test the issue on your end:
Form Export: https://pastebin.com/dUCDYnSG
Custom Code (functions.php Snippet): https://pastebin.com/n7YRsXfHExpected Workflow:
- Logged-in users should see their First Name and Last Name automatically filled in.
- However, these fields remain empty.
- I’ve tried both query parameters and custom hooks, but neither method works for these fields.
Password Field Issue:
- I’ve checked your suggestion regarding auto-generating passwords and have now set it to allow users to create their own passwords.
- However, my original issue was that the Password field was not selectable in the form editor—basically, no such field option existed.
- After resetting the form, I was able to re-add it, but I wanted to confirm if this was a known issue.
Looking forward to your findings. Thanks again for your support!
Best,
Michael