WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Gravity Forms Janrain Add-on

Integrate Gravity Forms with Janrain Engage social login to pre-fill forms.

I can't find (Facebook/Twitter/other provider) in the list of available providers.

Some providers require configuration in order to be available. To use Facebook login through Janrain Engage, for example, you will have to create an app on Facebook, and give those credentials to your Engage app.

Luckily, there are current step-by-step directions on the Engage dashboard. Go to the "Setup Widget" page on your Janrain dashboard (find it under Deployment > Sign-in for Web; open the Providers section of the sidebar). Each of the providers which requires configuration will have a gray gear icon next to it; click that icon and follow the wizard steps.

I want to be able to access a field that a provider offers, but it's not populating in my forms.

Some profile fields require requesting extended profile data. You can configure the permissions your app requests of the user on an "a la carte" basis from your rpxnow dashboard under Deployment > Provider Configuration. (Keep in mind that asking users for too many permissions is more likely to scare them away - don't be a creeper!

NOTE: some extended profile fields are only available to Plus or higher service levels.

How can I add more prefill fields beyond the default ones?

This plugin has been designed to be easy to extend. If you want to add more fields, you will need to hook a function to the filter janrain_gforms_profile_data that defines the name of the field you want to add, and the function to get its data. This filter recieves the array of core fields as its argument, so if you need to redefine one of the core fields, this is the place to do that as well.

For example, the following code will make a new field available called "religion"; which pulls any data the user has entered as their "religion" on Facebook (or any other provider that includes that field):

add_filter( 'janrain_gforms_profile_data', 'add_religion_field' );

function add_religion_field( $fields ) {
    $fields['religion'] = array(
        'name' => 'Religion',
        'function' => 'religion_field'
    );
    return $fields;
}

function religion_field( $profile ) {
    return $profile->merged_poco->religion;
}

Requires: 3.4 or higher
Compatible up to: 3.5.2
Last Updated: 2013-8-19
Downloads: 334

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1