1. Home
  2. Knowledge Base
  3. Uncanny Codes
  4. Using Codes with Gravity Forms

Using Codes with Gravity Forms

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 if you link code redemption to user registration). 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, add an “Uncanny Code” field to it, 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.

Add a code redemption field to a form

The Uncanny Codes plugin adds an “Uncanny Code” field to the Advanced Fields section of the form edit page. An example is shown below.

Uncanny Code Field

To add a code redemption field to a form, simply drag the new field type to your form. This will show a text field to users in the form in the front end. This can be added to any form type and it can be made manual or optional.

Registration Form Setup

The following settings are not required for Uncanny Codes versions after version 4.0, but offer some additional capabilities error message overrides to registration forms. To set them up, 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.

Gravity Forms settings for Codes

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.

12 replies
    • Ryan
      Ryan says:

      The example you provided doesn’t seem to be a valid page, but to confirm, this article refers to one of 3 ways to register with codes using the Codes plugin. Gravity Forms is optional and only one of the methods available.

      The login process doesn’t involve the Codes plugin, as codes can’t be redeemed on login.

      Reply
  1. Thamer Qadorah
    Thamer Qadorah says:

    Great
    I use it succisfully to make students enroll in some courses when they rigister to my site
    But the question : could i use it to make #registerd students to enroll new courses later ?

    Reply
  2. Oleg Buylov
    Oleg Buylov says:

    Is it possible to apply a promocode when updating a profile, and not when creating a profile? That is, for existing users.

    Reply
    • Ryan
      Ryan says:

      You will unfortunately need the User Registration add-on for this to work, and that add-on is only available with an Elite license.

      Reply
  3. Pablo Narvaez
    Pablo Narvaez says:

    Hi, I had setting the redeem code in two instances whit Gravity Forms. Fisrt when the student register for first time, and second If the student want to redeem another code into his account. It was working perfect, but a few weeks ago, the integreation doesn’t work. Please can you let me know how can I fix that. Thanks.

    Reply
    • Ryan
      Ryan says:

      Hi Pablo, are you able to submit a support ticket if you’re still having issues? We don’t monitor the Knowledge Base for plugin issues and don’t have tracking against it.

      When you log the ticket, let us know what shortcode you’re using and what specifically is failing.

      Reply

Comments/Questions

Please note that this is not a support forum. If you are experiencing issues on your site, please open a support ticket instead. Site-specific support questions submitted as comments will be unanswered.

Leave a Reply

Your email address will not be published. Required fields are marked *