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-populating forms based on a specific email address

  1. Hi,
    I am trying to set up a series of forms where the the name fields would be pre-populated based on the email that was entered.

    More specifically, I have an email field on the first page, and after they enter it, they are taken to the registration page with Advanced Name fields, among others. I already have a list of emails that correspond to first and last names in an Excel spreadsheet. So when they enter their email on the first page, when they are taken to the registration page the first and last names should already be filled in.

    I've looked into dynamically populating fields, as well as the gform_pre_render, but I have little to no coding experience so can't really figure out how to get it to do what I want. I'm also totally open to entering the information into a form or table on Wordpress so that it doesn't have to pull the information from an actual Excel file.

    Any help would be appreciated!

    Posted 11 years ago on Monday December 31, 2012 | Permalink
  2. It will be easiest if you can get the data out of the Excel spreadsheet, since there are really no calculations: it's just pairs of related data. You can put it in a text file, or you can put it in a database table. That part does not matter.

    However, you are going to need some programming help to accomplish this. I would have two forms: the first form where the email is entered, then the second form will carry the email over, and also using gform_field_value_$parameter_name:

    http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name

    You can look up the values for first and last name based on the email that was entered in the first form.

    This will take a small bit of PHP code to do the lookup. You can find help on our job board or at any of the many WordPress-specific help sites out there.

    http://www.gravityhelp.com/forums/forum/job-board
    http://wpquestions.com/
    http://jobs.wordpress.net/
    https://www.odesk.com/o/profiles/browse/skill/wordpress/

    Posted 11 years ago on Monday December 31, 2012 | Permalink
  3. Thanks for the timely response even though it's a holiday. I'll take a look and search those job postings, see what I can find.

    Posted 11 years ago on Monday December 31, 2012 | Permalink
  4. Please let us know if you need help. It will not be a lot of work, but it will require some programming. It should not take long for someone experienced with Gravity Forms and PHP.

    Posted 11 years ago on Monday December 31, 2012 | Permalink