• Resolved michaeltee

    (@michaeltee)


    I’m currently using Forminator to handle user registration on my WordPress site and have run into a couple of issues that I hope you can help with:1. First Name & Last Name Fields Not Pre-Populating

    • I’m trying to pre-fill the First Name and Last Name fields for logged-in users using user meta data.
    • Despite setting up the form correctly (using query parameters and custom filters in functions.php), these fields remain empty on page load.
    • Interestingly, other fields (like Display Name) do pre-populate correctly, so it seems like an issue specific to First and Last Name.
    • Is there a known limitation or workaround for ensuring these fields populate properly?

    2. Password Field Cannot Be Selected

    • When setting up the form, I noticed that the Password field cannot be selected or used properly in the registration form.
    • Ideally, I want users to create their own password at registration rather than having one auto-generated.
    • Is there a way to enable password selection within the form?

    If these are known issues, I’d appreciate any guidance on potential fixes or upcoming improvements. Any help would be greatly appreciated!

    Looking forward to your response,
    Michael

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @michaeltee

    Hope you’re doing well today! Thank you for reaching out to us.

    I could not notice any similar reports wherein the prefill for the first name and last name is not working as expected, since your form also involves custom code, could you please export and share the form & the custom snippet with us so that we can import it on our site and check the issue further? Please also share the expected workflow (steps to replicate) which will help us to troubleshoot the issue.

    Please feel free to remove any sensitive information from the form.

    To share the form export
    – Navigate to the “Forminator -> Forms” page in your site’s back-end
    – click on a little “gear” icon next to the form in question
    – select “Export” option
    – copy given export code and paste it at?https://pastebin.com
    – include link to that paste in your response below.

    Note: this export will not include any data that is already submitted – they’ll stay safely on your site and we don’t need them anyway.

    Further, regarding the password field, based on what you’ve mentioned, it looks like you’ve set the password field to “auto-generate password”, can you please set it to the actual password field on the form, this way the users will be able to set their own passwords.
    https://monosnap.com/file/hyObN14B8CtNCbDYhVICbjKlngfSGC

    About the field cannot be selected or used, can you please elaborate more? Is it that the users are unable to type anything on the frontend or you are unable to add it on the backend on the form? I am confirming about this because on my lab site, I am able to use it on the website frontend as well as on the form backend (tried deleting and re-adding the password field)

    Awaiting your response.

    Kind Regards,
    Saurabh

    Thread Starter michaeltee

    (@michaeltee)

    Hi 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/n7YRsXfH

    Expected 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

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @michaeltee

    Thank you for the detail.

    For the pre-fill, you can use the native Forminator feature for it: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#autofill

    The hook you are using forminator_form_after_handle_submit is for page reload submission, since you are using Ajax you can use the forminator_form_after_save_entry

    Password Field Issue:

    For this, I may be missing something, the form you shared is a custom user edit, since it isn’t a registration form we don’t have the password field and you would need to use the text as you are using now, I believe it is not updating the password because of the used hook.

    But if you are using user registration one the users can type the password just fine:
    https://monosnap.com/file/neVtRcAFCTsHKAmn6sk89Ya62txaZu
    https://monosnap.com/file/oZcz7YxsvZTPGkXFkAaHT3ctATpojE

    Note, custom coding is out of our support but I believe the above information should guide you to correct direction.

    Best Regards
    Patrick Freitas

    Thread Starter michaeltee

    (@michaeltee)

    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,
    Michael

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @michaeltee ,

    I hope you’re doing well.

    I’m afraid it is not possible with Forminator as there is no password field for the login form and this will be outside the scope of support we can provide. For that, you’ll need to hire a developer to provide the required custom code for you. WordPress provides a jobs directory here https://jobs.wordpress.net/, if you need further advice about it, feel free to email [email protected].

    Subject: ATTN: WPMU DEV support – wp.org

    Best Regards,
    Williams Valerio

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @michaeltee,

    Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to re-open this thread if you need any further assistance.

    Regards,

    Nithin

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.