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.

Question regarding user-registration

  1. Derk
    Member

    Hi,

    For a new project im working on i want to try and use the User Registration add-on. Im already testing this add-on and im a bit stuck right now.

    When i create a registration form, its all good! I can even add some custom fields etc. But when i look at the created profiles in my Wordpress install .. my custom fields are nowhere to be seen! How can i show custom fields in the standard Wordpress profile?

    This also brings me to my next issue: if it were possible to get my custom fields to show up in the Wordpress profiles .. would it be possible to filter these profiles on the custom fields ive created in Gravity? (for example i want all users to show up that have entered the same value in custom fields 1,2 an 3).

    And a third issue: would it be possible to export these filtered users to the mailchimp add-on so i can send these users an email?

    The idea is pretty much to be able to have users sign up, and send these users emails depending on what they have entered in the custom fields! For example 1000 users signed up and i want to email the users wich have entered the same value's in custom fields 1,2 and 3!

    I hope i made myself clear, if not id be happy to clarify!

    (also if this would be able with another plug-in id be glad to hear it .. no fear for Gravity i already have a developers license and am VERY happy with it!)

    Thanks in advance!

    Posted 13 years ago on Thursday February 17, 2011 | Permalink
  2. Custom fields aren't automatically shown in the WordPress user profile/user editor screen. They may exist in the database but they aren't automatically shown in the user profile. Custom fields in user meta are just like custom fields in post meta, write panels for those custom fields aren't automatically added. You have to tell WordPress to display them.

    Gravity Forms doesn't do this part, it only stores the data. Just like with Posts, it doesn't add any UI to the Post editor, it simply creates the data. Here is a tutorial on how to add user meta fields to the user profile/editor page:

    http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields

    I'm not sure what you mean by filtering profiles. This is going to be something outside the scope of Gravity Forms. Gravity Forms simply creates a form that can create a user. What you do with that user and how you present that user on your site after the fact is entirely up to you through custom code in your theme or via the use of other plugins.

    The MailChimp Add-On can be used on the same form you are using for User Registration. So you can integrate both the MailChimp Add-On and the User Registration Add-On on one form so there would be no reason to export users/etc. as they would be added when they registered.

    You would store the values entered in the custom fields into MailChimp custom fields. Just configure your MailChimp feed to use those custom fields when setting up the MailChimp integration. You would also use these same values to store the user meta you want to store with the Registration integration.

    We are considering adding the ability to have Gravity Forms display the user meta data no the user profile/editor screen but we are a bit torn on this. This is a bit outside the scope of Gravity Forms purpose: forms. There are issues such as what if the user already has a plugin in place to display these custom fields? They would be displayed twice. Because plugins exist to handle custom user meta. So we aren't 100% sure if we are going to implement this functionality.

    The User Registration Add-On only handles the registration form piece, after that it is up to you to provide the rest of the user experience after the user is registered.

    Posted 13 years ago on Thursday February 17, 2011 | Permalink
  3. Derk
    Member

    Hi Carl,

    Thanks for taking the time to awnser my question! Apriciate it!

    To get back to the post:
    By filtering profiles i mean i want to sort users and/or entries!
    When a registration form is created an entry and a user is created.

    Its easy to sort these users and entries by entering a search keyword.

    I want to be able to enter a combination of 2 (or more) keywords. (These keywords would be based on values entered in custom fields during sing up.)

    Like when you search in google for a combination of keywords u use: keyword + keyword.

    This way i can do some advanced sorting and i can create a very specific list of users.

    It would be great to be able to send these people an email or notification of some sort.
    Thats where i though the mailchimp add-on might be usefull.

    It might be a little bit to advanced .. im starting to think it would require some custom coding .. but if it would be able with gravityforms that would be awesome!!

    Posted 13 years ago on Friday February 18, 2011 | Permalink
  4. Carl,

    I love the registration form add-on and how easy it is to map the form fields to the registration fields. I understand what you say above about wordpress not displaying the custom fields that I create in the registration form. However, how can I retrieve the author custom field keys and values so that I can display the data on the front end? Basically I want the author page to have the information they specified in the custom fields during their registration.

    Thanks!

    Posted 13 years ago on Friday February 18, 2011 | Permalink
  5. @Derk There is no sorting of Users in Gravity Forms. Once a user is created using the User Registration Add-On you would manage that users by going to the User manager in WordPress. You don't manage users from the Entries area of Gravity Forms. Gravity Forms creates the user, but that is the extent of it's interaction. It simply creates the data.

    You can search Entries by going to the Entries area of Gravity Forms and you can search for Entries using a simple keyword search.

    If you want to send them emails you could use the MailChimp Add-On and when they register, your form also adds them to your mailing list. Then you send them emails via MailChimp.

    @azsmall24 Here are some tutorials that discuss using user meta. Here is one that discusses how to add custom user meta fields to the user profile page:

    http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields

    Here is the CODEX article on the get user meta function in WordPress:

    http://codex.wordpress.org/Function_Reference/get_usermeta

    The key is whatever you configured when you configured your user registration settings. When you choose "Add Custom" from the user meta drop down it displays a text field, this text field is where you type in the key you want to use for that custom user meta. See this screenshot:

    http://grab.by/91JU

    You then use that key with the get_usermeta function to display that data.

    Posted 13 years ago on Friday February 18, 2011 | Permalink
  6. Ohhh ok, so for stuff like address and phone, I need to use custom fields for each of those instead of the address/phone predefined advanced fields so that I can specify the key. Correct?

    Posted 13 years ago on Friday February 18, 2011 | Permalink
  7. Nevermind, I figured it out! I was misunderstanding that you define the custom field in the user registration mapping and not in the form creation. Thanks!

    Posted 13 years ago on Friday February 18, 2011 | Permalink