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.

populate drop down list with data from another form

  1. geomaniac
    Member

    Hi,
    I'm new to Gravity Forms and am struggling trying to develop dynamic forms. I have 2 forms. The first form collects names of people signing up for a golf tournament. The second form is for people to select the name of the golfer they wish to pledge, from a drop down list.

    I've read copious amounts of literature on how to populate using hooks shortcodes etc but my non-developer brain cannot seem to understand.

    This post comes close to explaining it http://www.gravityhelp.com/documentation/page/Dynamically_Populating_Drop_Down_Fields However, in my case I'm trying to pull first name, last name data and populate that into a dropdown list.

    So to recap.

    Form 1: collect first name, last name, and email. This in turn becomes a site user.
    http://www.100holesofhope.com/sign-up/

    Form 2: Select which user (first name last name) from a dropdown list.
    http://www.100holesofhope.com/make-a-donation/

    Any help would be appreciated. And please note, I'm a dummy when it comes to development :). I do have access to my theme's functions so i should be able to paste in some code to make it happen.

    George

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink
  2. geomaniac
    Member

    Anyone?

    Posted 11 years ago on Thursday June 13, 2013 | Permalink
  3. George,

    Are you registering/creating actual users on your site?

    Posted 11 years ago on Thursday June 13, 2013 | Permalink
  4. geomaniac
    Member

    That's the idea yes. I've added the add-on "user-registration".

    Posted 11 years ago on Thursday June 13, 2013 | Permalink
  5. See if this post helps you out:
    http://www.gravityhelp.com/forums/topic/populate-drop-down-list-with-usernames#post-95821

    Posted 11 years ago on Thursday June 13, 2013 | Permalink
  6. geomaniac
    Member

    That's great! Thanks.

    It's working on my site now but I'd like to tweak it slightly. I would like it only to add users who are subscribers. No admins etc.

    Posted 11 years ago on Thursday June 13, 2013 | Permalink
  7. David Peralty

    You can change the user level that people are subscribed as in the User Registration settings for the form.

    Posted 11 years ago on Thursday June 13, 2013 | Permalink
  8. geomaniac
    Member

    Thanks. I understnad I can change what level people are subscribed at. What I don't understand is how to get the form, only to display SUBSCRIBERS and not Admins.

    Here's the form. http://www.100holesofhope.com/make-a-donation/

    Here's where I ask people to sign up (it's a golf tourney)
    Secondly, I'd like the form to display first name, last name. Right now it displays the users emails.

    Many thanks. Amazing plugin.

    Posted 11 years ago on Thursday June 13, 2013 | Permalink
  9. geomaniac
    Member

    Ok, I figured out the name field. I had "email" listed as the "username" so when people login they would use their email as their login name.

    Posted 11 years ago on Thursday June 13, 2013 | Permalink
  10. geomaniac
    Member

    I would still like help with my first query:

    I understand I can change what level people are subscribed at. What I don't understand is how to get the form, only to display only SUBSCRIBERS and not ADMINS.

    Here's the form. http://www.100holesofhope.com/make-a-donation/

    Thankyou!

    Posted 11 years ago on Thursday June 13, 2013 | Permalink
  11. geomaniac
    Member

    help please.

    Posted 11 years ago on Friday June 14, 2013 | Permalink
  12. Change line 19 to this:

    $metas = get_users('role=subscriber');

    That will return only subscribers

    Posted 11 years ago on Monday June 17, 2013 | Permalink
  13. geomaniac
    Member

    Perfect. Thanks so much for your help.

    Posted 11 years ago on Monday June 17, 2013 | Permalink

This topic has been resolved and has been closed to new replies.