• Resolved fra8719

    (@fra8719)


    Hallo,
    how can I pre-populate the name and email fields of my form when the user is already registered and logged in?

    I want to avoid to force the user to insert again email and name when they have already logged in my website.

    However I need both, email and name, otherwise I do not know who is sending the message.

    The registration and login are respectively done via two forminator forms.

    Then I have a third form where the user can send me a message. I would like to have the name and email prepopulated in this third form and receive the message with the email and the name of the user

    Is that possible?

    Thanks

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

    (@wpmudevsupport12)

    Hi @fra8719

    I hope you are doing well.

    If your user is logged in you can use the Autofill option:

    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#:~:text=for%20modern%20browsers-,Autofill,-In%20case%20you

    In case you would like to send from Form A to Form B the data you can use the custom parameters:

    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#pre-populate-form-field-values

    Let us know if you have any additional questions.
    Best Regards
    Patrick Freitas

    Thread Starter fra8719

    (@fra8719)

    Hallo,
    does it work also if the redirect URL is my Homepage?
    If yes, how should be the homepage url? something like https://www.homepage.com/?name=…

    I cannot make it work and I have the feeling that the problem lies on the fact that I have the form whose fields I want to pre-populate in my homepage.

    Thanks!

    • This reply was modified 3 years, 3 months ago by fra8719.
    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @fra8719,

    Which method are you trying to use, did you enable Autofill from the Behavior tab in your form, or you’re trying to pre-populate based on the submission from the other form?

    If you’re using Pre-populate from a different form make sure that you have the proper setup as the Redirect URL should look something like this:
    https://yourcoolsite.tld/form-2?email={email-1}

    Cheers,
    Predrag

    Thread Starter fra8719

    (@fra8719)

    I was trying to use the Autofill option with the submission from the other form. However it did not work. I suppose because I am trying to pre-populate a form in the homepage

    The Redirect URL will look as https://yourcoolsite.tld/form-2?email={email-1} only if my form is on a page (in the example the page name is “form-2”).

    However, if my form is on the homepage, how does my redirect url should look like? As follow? https://yourcoolsite.tld/?email={email-1}

    If I do that, it does not work.

    • This reply was modified 3 years, 3 months ago by fra8719.
    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @fra8719,

    It seems that there’s a bit confusion at the moment, at least from my end, and I’m struggling a bit to understand the setup you’re after, so let me try clearing up few things first.

    You mentioned that you’ve tried Autofill with Pre-populate but these are actually two different options, you don’t need pre-populate if you’re using Autofill, let me elaborate further below.

    Autofill is an option that can be enabled inside Behavior tab of your form.
    Once that is enabled it will show additional options to fill in specific fields in the form, you can choose which WP user data will be added to which field:

    View post on imgur.com


    This setup then loads the data from logged in users and fills in the fields inside the form.

    From what I understand so far, you have tried only using Pre-populate and haven’t checked Autofill, is that correct?

    Pre-populate works in a different way, it depends on first form to be submitted in order to fill in the details in the second form, the one that first form redirects to.
    Can you tell me a bit more about how your setup is looking? From what I understand, you have Registration form which redirects to Contact form after submission and fills in Contact form fields (by using Pre-populate) from the data entered in Registration form, is this correct?
    Are your registration and Contact forms both on your homepage or Registration is performed elsewhere?

    Cheers,
    Predrag

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @fra8719

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional questions or problems.

    Best Regards
    Patrick Freitas

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Pre-populate name filed when user is logged in’ is closed to new replies.