Creating an affiliate registration form - Affiliate Forms For Ninja Forms

Note: This article relates to the Affiliate Forms For Ninja Forms pro add-on. The Affiliate Forms for Ninja Forms pro add-on requires the free 3rd-party Ninja Forms plugin.

The Affiliate Forms For Ninja Forms pro add-on provides compatibility with both the current version of Ninja Forms, Ninja Forms 3, as well as older Ninja Forms 2.9 versions. Make sure to confirm the version of Ninja Forms you're using, and refer to the section below for the Ninja Forms version you're using.

Ninja Forms 3.0 or higher

1
With both Affiliate Forms For Ninja Forms and the Ninja Forms plugin installed, go to  Forms → Add New
2
Add the form fields for affiliate registration. For the registration to be valid, you'll need to add the following fields:
  • Email address
  • Affiliate Username

However, we recommend adding all of the registration fields available.

Once you're on the New Form screen in Ninja Forms, AffiliateWP fields are located in Form Fields → AffiliateWP at the bottom of the section. It is important to use the Username field from this section vs creating your own text field and labeling it the Username field.  This also applies to the First Name, Last Name, and Email fields as well which can be found in the User Information Fields:

Use the Username field from the AffiliateWP section

select first , last name and email fields from User Information

The password field will not be visible in this section due to some previous Ninja Form plugin changes, however, we recommend adding it so your affiliate's can set their password while registering.  This way they can login when ready (or approved) and not be redirected through a password reset process which is not the best on-boarding experience.  To access and add the Password and Password Confirm fields, scroll to the top of the field list and type 'password' in the top search area where it says Filter, and when visible, add them to your form.

Search for Password and Password confirm fields

3
When you are finished adding the fields you would like to include, click the Done button in the top-right corner, and then click to Publish your new Ninja Form.  Setup is not complete, but saving your form now is necessary.  You will return to this form in a later step to finish the affiliate registration configuration.
4

Next, shift over to the settings of AffiliateWP, go to Affiliates→ Settings → Ninja Forms and select the form you just created to use for affiliate registrations and Save Changes

Affiliates settings Ninja Forms

5
Now, head back into the Ninja Forms form edit area. We'll need to tell Ninja Forms which fields should be used for AffiliateWP field data so the form submission can be recognized and create a new affiliate account. 
Once back inside the form editing area, go to  Emails & Actions and click the + to add Affiliate Registration:

Emails n Actions add Affiliate Registration action

Next, click the cog wheel to bring up the Affiliate Registration field list. In each of the dropdown options, select the field to connect to the matching default affiliate registration field.  If you do not see a field to match with, make sure you added the correct field types as noted above in Step 2.

Affiliate Registration field list for mapping

Note: If you don't see any fields at all, meaning it's blank, head back to Step 4 and verify you completed the form selection. Until you set the Ninja Form you plan to use for affiliate registrations, the list of fields to connect will not appear.

And finally, at the top of this section, select whether or not you'd like the affiliate to automatically be logged in after submitting their affiliate registration:

Automatically log in the affiliate after registration

7
Make sure to click Done and  Publish the form again once you are ready.
8
That is it, you are finished!  Now it's time to go test an affiliate registration!

Ninja Forms 2.9 or lower

1
With both Affiliate Forms For Ninja Forms and the  Ninja Forms plugin installed, go to Forms → Add New
2
While editing the form, go to Settings → Display (you may be asked to save the form), and enable the Use this form for affiliate registration checkbox
3
Add your desired fields and save 

Import a prebuilt form

If you don't want to build the form from scratch, here's a form (this is for 3.0 or above; for Ninja Forms 2.9 or lower, click here) you can import which will create the affiliate registration form for you. To import this form:

1
Download the file to your comptuer
2
Go to  Ninja Forms → Import/Export
3
From the Import a form section, click the  browse button and locate the file you downloaded from step one above
4
After you've successfully imported the form, go to Forms → All Forms, and you'll see a new Affiliate Registration Form and can proceed with the configuration steps above.

Note: You can only have one Ninja Form designated as the affiliate registration form.