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.

How to work out pre populated field names

  1. http://www.gravityhelp.com/forums/topic/right-parameter-names-to-pre-populate-the-names-fields

    I have followed all the steps in this previous forum thread, and have it all working, this forum has been really helpful. But I have an extra field 'Company Name' which im trying to populate on another form and I'm wondering how do I find the field ID thing I need to do it (e.g. user_lastname). I tried user_company.

    I appreciate the help!

    Posted 13 years ago on Thursday September 22, 2011 | Permalink
  2. You can find the field IDs by viewing the source of the page that holds the form. You can do this on the preview page if you like.

    You could also look at the user meta in the database, to see how the field is being referred to. I'm not sure *exactly* what you're trying to do. Do you have a registration form that asks for a company name, and you're storing that information as part of the user's profile?

    Posted 13 years ago on Thursday September 22, 2011 | Permalink
  3. I have a form on this page (http://theadvertorialnetwork.co.uk/register/) with company name as a field which is also on another form on a separate page, which i wish to populate.

    I have added this line of code to functions.php (http://www.pastie.org/2573886)

    The First Name etc are working, but i think i have named the company field wrong somewhere. Any suggestions?

    Posted 13 years ago on Thursday September 22, 2011 | Permalink
  4. Seems there's a typo in your code snippet - \'user_comapny\' should perhaps be \'user_company\'?

    Posted 13 years ago on Saturday September 24, 2011 | Permalink
  5. Good eye @rverrips

    Posted 13 years ago on Saturday September 24, 2011 | Permalink