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.

Extending Default Value

  1. ActiveHive
    Member

    I was hoping to set some default values in a form using values from the wp-usermeta table in the db like first_name and last_name.

    The Default Value dropdown has a couple of options like {user:display_name} and {user:user_login} and I was wondering if there was a list of other values available that I canm access?

    Or should I be using Parameter Name instead, and if so, are there any examples of how?

    Thanks.

    Posted 14 years ago on Tuesday October 12, 2010 | Permalink
  2. The only available options are those that appear in the variable drop down. If you have any suggestions for additional variables, let us know and we can look into adding them.

    Posted 14 years ago on Tuesday October 12, 2010 | Permalink
  3. ActiveHive
    Member

    Thanks Carl.

    I was looking at setting up a form to edit user details, so I was hoping to be able to access pretty much everything in the wp_users and wp_usermeta table.

    I did manage to drag in first_name and last_name from the wp-usermeta table by using {user:first_name} and {user:last_name} so I am guessing that I can access anything that is a global variable in WP?

    Does that sound right...

    Thanks again.

    Posted 14 years ago on Tuesday October 12, 2010 | Permalink
  4. Not all global variables are available. Those {name:parameter} tags are specific to Gravity Forms and only parse if we have written the code to parse them. So it won't work with all variables but we try to include a large number of them. If you find a variable that we haven't included that you might find useful just suggest it in the Feature Requests and we can consider adding it in a future release.

    Posted 14 years ago on Wednesday October 13, 2010 | Permalink
  5. ActiveHive
    Member

    Thanks Carl.

    Posted 14 years ago on Thursday October 14, 2010 | Permalink