PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Connectin User Data

  1. Pietro
    Member

    Hi once again.
    Guys ... this is important ... And I do not find in forum something which can help me :o(
    And once again I really need Your help :o( I do not know how to organize all my form:
    Look:
    I have a beautiful form called "Enrollment to Travel School". And I have a "Registration Form" ...
    In the Enrollment form, I just collect all data I need for a new Travel School member, of course but ... What if some (many) of this data are already in the WP user page ?? I mean ... I do not want that, a user which is already register on my web site has to write AGAIN who is him, the address, the gender, the date of birth etc etc ...
    Do You know how I can make Gravity Form RECOGNIZE an already Register User ??
    THANK YOU SO MUCH !!
    PIETRO

    Posted 12 years ago on Thursday November 22, 2012 | Permalink
  2. I would like to know the answer to this as well. I have over 200 entries created by about 150 people who were not registered or logged in. I am creating user accounts for all of them, but I need to know how to tie their new user ID to the entries they created.

    Posted 11 years ago on Sunday November 25, 2012 | Permalink
  3. @firststep3 - please begin a new topic for your issue as it is complex, as the original topic was, and will need to be handled individually. Thank you.

    Posted 11 years ago on Monday November 26, 2012 | Permalink
  4. Pietro, you can check the box on the Advanced tab of the Form Settings which says "Require user to be logged in". That will ensure that only logged in users can submit your form.

    You can then pre-populate the name, address, gender, date of birth, all using the built in merge tags as the default value. That will fill in the registered user's name from their WordPress user profile fields. You can see the documentation here: http://www.gravityhelp.com/documentation/page/Merge_Tags

    Here are some examples:

    {user:first_name}
    {user:last_name}
    {user:display_name}
    {user:user_email}
    {user:user_login}

    For all your extended user profile fields:
    {user:[meta_key]}
    (where meta_key is your actual meta key, like "dob", "gender", etc.

    Posted 11 years ago on Monday November 26, 2012 | Permalink
  5. Pietro
    Member

    Thank You Chris ...
    But I think I am gonna be mad ........ :o(
    I will try to understand ... but I do not at the moment, at all ... How to technically "pre-populate" ... I really do not understand at the moment ... :o(

    Posted 11 years ago on Wednesday December 5, 2012 | Permalink
  6. David Peralty

    So there is an option for each field called Default Value. If you put David into that for your First Name field, on loading that form it would show David. If you put {user:first_name} in Default Value, it would check to see if a user is logged in and if they were, it would grab their first name from their user profile, so again, in my case it would show David.

    Does that help?

    Posted 11 years ago on Wednesday December 5, 2012 | Permalink
  7. Pietro
    Member

    I will try in the weekend.
    Thank You David ...

    ...
    By the way ...
    If I check the option "Require user to be logged in" ... What can I add in the text box below ??
    I can add a simple text like "If You already have an account on PS.com, just enter your data. If not, then just amke a registration" but I always have the same problem ... that I have not a login form, nor a registration one in my front-end ... Is it correct ?? :o( I still do not know how to make my users manage enrollment or login from the front-end ... :o(

    Posted 11 years ago on Thursday December 6, 2012 | Permalink
  8. David Peralty

    Create another form and then in that text box on that form that is for logged in users only, have a link to the registration form.

    Posted 11 years ago on Thursday December 6, 2012 | Permalink