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.

Pre-populate" field for logged in users with {user:user_email}

  1. cbrady
    Member

    I have noticed that {user:user_email}, {user:user_firstname}, and {user:user_lastname} are not pre-populating for logged in users while using Gravity forms 1.6.3.3.4. From reading other posts (ex: http://www.gravityhelp.com/forums/topic/dont-work-pre-populate-useruser_email-in-field-for-login-users), I understand there was a bug previously. Has the issue been fixed or do I need to request a separate fix?

    Thank you.
    CB

    Posted 12 years ago on Wednesday April 25, 2012 | Permalink
  2. Hi, cbrady,

    Yes, this issue was fixed and was released in Gravity Forms version 1.6.3. The fix was necessary when WordPress v3.3 was released. Which version of WordPress do you currently have?

    Posted 12 years ago on Wednesday April 25, 2012 | Permalink
  3. cbrady
    Member

    3.3.2

    Posted 12 years ago on Wednesday April 25, 2012 | Permalink
  4. CB - how are you trying to populate/use these exactly. I just set a default value on a field in one of my forms for User Email and it populated fine. Can you provide some details about your setup, a link to your form, etc.

    Posted 12 years ago on Wednesday April 25, 2012 | Permalink
  5. cbrady
    Member

    On my name field, I clicked on the "Advanced" tab. There, I clicked the "Allow field to be populated dynamically." I then entered "{user:user_firstname}" for first name and "{user:user_lastname}" for last name.

    For my e-mail field, I followed a similar process.

    The form itself is set to only be displayed to logged in users.

    Posted 12 years ago on Thursday April 26, 2012 | Permalink
  6. Dynamic population doesn't work that way, with the use of merge tags. I think in your case, you just need to place them in the Default Value option instead.

    Posted 12 years ago on Thursday April 26, 2012 | Permalink
  7. cbrady
    Member

    OK. I see how to do that for e-mail. How does one specify default values for Advanced Fields > Name?

    Thank you.

    Posted 12 years ago on Tuesday May 1, 2012 | Permalink
  8. David Peralty

    You will want to use regular input boxes instead of advanced fields and just label them to be Name, otherwise, you'll have to write some PHP code in your functions.php file to fill out those fields before the form renders.

    http://www.gravityhelp.com/documentation/page/Gform_pre_render

    Posted 12 years ago on Tuesday May 1, 2012 | Permalink
  9. cbrady
    Member

    Thank you.

    Posted 11 years ago on Tuesday May 8, 2012 | Permalink

This topic has been resolved and has been closed to new replies.