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.

Where do I find/set Parameter Name for dynamic population?

  1. I have looked through the documentation and forums but haven't found the solution to my task yet. I have a form that registers new users. I have a second form where registered users will add a list of heirloom seeds they have - so they will be filling out the second form many times and I don't want them to have to re input the same info over and over. For example, I want to pre populate the second form with the user's USDA Growing Zone (and other information such as address, elevation, and phone) which I asked for on the registration form.

    I tried this in functions.php:

    // populate the field with "usda_growing_zone" as the population parameter with the "usda_growing_zone" of the current user
    add_filter('gform_field_value_usda_growing_zone', create_function("", '$value = populate_usermeta(\'usda_growing_zone\'); return $value;' ));
    // this function is called by both filters and returns the requested user meta of the current user
    function populate_usermeta($meta_key){
        global $current_user;
        return $current_user->__get($meta_key);

    But usda_growing_zone is simply the field label with underscores, I do not know how/where to find the actual parameter name for that field in the registration form. If you could help me with this I think I could figure out the address, phone and elevation...
    Reg. form
    Form 2

    Posted 12 years ago on Sunday April 15, 2012 | Permalink