Gravity Forms Setup
To use Gravity Forms with the Uncanny LearnDash Codes plugin, your site must have Gravity Forms and the User Registration add-on installed. This is our preferred method of controlling registration with the plugin, but we do recognize that it’s an expensive option that isn’t suitable to every site.
Before you can use codes with Gravity Forms, you must set up a new form, configure it to register a user, and add this form to a page. These steps are outside the scope of our Knowledge Base, but more information is available here.
Note: If you enable User Activation in the User Registration Feed settings of your form, the code will not be redeemed until the user is activated/verified.
Uncanny LearnDash Codes Setup
Once the form is set up as a registration form, it must be configured in the Codes plugin. To do that, navigate to Uncanny Codes > Settings as an administrator. You’ll see a section at the top of the page that looks like the screenshot below.
From the drop-down list at the top, choose the form that’s been set up for user registration. The checkbox beneath it controls whether entering a code is optional or required. If users can only sign up by entering a valid code, check this box. If users can sign up without entering a code, leave the box unchecked.
The remaining Gravity Forms fields simply allow label customization. They might also be used if label translation is required.
Customizing the Enrollment Code Field
If an Enrollment Code field is not added to the form, Uncanny LearnDash Codes will automatically add a code redemption field to the bottom of the form.
If you want to place the field somewhere else in the form or customize any other attributes of the field, you can add an Enrollment Code field to your form and customize its options directly within the Gravity Forms editor.