Yeah, I'm sorry about that. I waited two weeks in here before going priority. Dana sent me:
"To dynamically populate your drop down with users, you need to check the option on the Advanced tab called "Allow field to be populated dynamically" for your drop down field. You do not provide a parameter name. You will use the gform_pre_render filter in your functions.php file. I have created an example for you which uses the WordPress function "get_users()" to get users. :)
Take a look at the example here: http://pastie.org/4751675 .
The WordPress documentation for the get_users function can be found at http://codex.wordpress.org/Function_Reference/get_users - in case you want to add more filtering to the get_users function than what I used in the example.
The documentation for the gform_pre_render function can be found at http://www.gravityhelp.com/documentation/page/Gform_pre_render . I used the examples here as my basis for building the function for populating a drop down with user information."
When you set up the drop down, you will be shown display_name, which wasn't quite what I wanted.
I found that I could change that when I connected the form to user registration and set the shown name to last name/first name in there.
Then I have my last and first name in the drop down :)
Posted 7 years ago on Thursday September 20, 2012 | Permalink