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.

Dynamic field listing of users

  1. swilsdon
    Member

    Hi,

    I am trying to add a field to select a number of users from the WP-Users DB.
    I am building a form capturing tender information and want to include a field listing employees included in the tender. All the employees have accounts in WordPress, so I need a field that lets me select a number of users from the WP_users DB.
    I have found the plugin that lets me use custom post types, but this does not allow me to select form the WP_Users DB.

    Any tips much appreciated.

    Posted 7 years ago on Saturday April 14, 2012 | Permalink
  2. liquidblue
    Member

    I would like to have a form field that can choose multiple users by the Word Press accounts.
    This is just an internal site with small number of users.

    Have you found any solution?

    Posted 6 years ago on Wednesday January 9, 2013 | Permalink
  3. You can use the gform_pre_render filter http://www.gravityhelp.com/documentation/page/Gform_pre_render to populate a drop down with WordPress users.

    The first example on this page shows how to populate a drop down with WordPress posts: http://www.gravityhelp.com/documentation/page/Gform_pre_render#Examples

    Instead of using the WordPress function get_posts on line 14, you can use the WordPress function get_users http://codex.wordpress.org/Function_Reference/get_users

    The loop through the users instead of the posts.

    Posted 6 years ago on Wednesday January 9, 2013 | Permalink