🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Course and Membership Enrollment Premium Add-on Setup Guide

Updated 8 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What You Get
  3. Requirements
  4. Install and Activate
  5. Add an Enrollment Feed
  6. Account Safety
  7. Fixed Courses or a Choice Field
  8. List the courses in the form
  9. Payments
  10. When a Course Is Completed or a Membership Ends
  11. Merge Tags and Entry Notes
  12. For Developers
  13. Limits to Know
  14. Frequently Asked Questions
  15. Do I need a paid LifterLMS add-on?
  16. Will the student get the LifterLMS enrollment e-mail?
  17. Can a visitor enroll in a paid course for free?
  18. What happens when the email already has an account?
  19. Does it send data outside my site?

Video walkthrough

Gravity Forms LifterLMS: Enroll Students in Courses from a Form (Free LifterLMS)
Watch the Course and Membership Enrollment add-on create a LifterLMS student and enroll them from one Gravity Forms form. Watch on YouTube

Course and Membership Enrollment joins Gravity Forms and the free LifterLMS plugin. A feed on your form creates or finds a safe WordPress account and enrolls it in the courses and memberships you choose, and a second kind of feed turns a completed course or an ended membership into a Gravity Forms entry or notification. Use it for an application form that opens a course, a paid sign-up that unlocks a membership, a free trial form, a school intake form or a renewal request.

A Gravity Forms form whose drop down lists the LifterLMS courses and memberships with their price: Newsletter Circle free, Portrait Lighting Masterclass 49 dollars, Studio Club Membership 19 dollars
The drop down is filled by the add-on with your published courses and memberships and their price.

What You Get

  • A feed called Enroll in LifterLMS course(s) or membership(s). When the form is sent, or when its payment is completed, it makes or finds the student account and enrolls it.
  • Enrollment with the documented LifterLMS function for it, so LifterLMS writes its own enrollment records, runs its own hooks and sends its own notifications and engagements. The add-on does not write to LifterLMS tables.
  • A trigger name stored with each enrollment, for example gravityforms_42, so you can always tell which entry enrolled a student.
  • Fixed courses and memberships ticked in the feed, or the courses and memberships a student picks in a choice field.
  • Form choices filled with your published courses and memberships and their price.
  • A second feed type: When a course is completed or a membership ends, which adds an entry to a form, sends its notifications, or both.
  • Merge tags for the course or membership title, link, id and price and for the student username.
  • Conditional logic, entry notes, a clear notice when LifterLMS is missing, and no outside requests.

Requirements

  • WordPress 6.5 or newer and PHP 7.4 or newer.
  • Gravity Forms 2.9 or newer.
  • The free LifterLMS plugin, version 6.0 or newer. This version was tested with LifterLMS 10.3.2.
  • A GravityExtra license key.

Install and Activate

  1. Install and activate Gravity Forms and the free LifterLMS plugin if they are not active yet.
  2. Upload and activate the Gravity Forms Course and Membership Enrollment Premium Add-on.
  3. Go to Forms → Settings → Course Enrollment, enter your license key and press Activate.

If LifterLMS is missing, too old or switched off, a notice on the Forms screens says so. Your forms keep working and the entries are saved, but nobody is enrolled.

Add an Enrollment Feed

Open Form Settings → Course Enrollment, press Add New and keep the action on Enroll.

The enrollment feed settings in Gravity Forms: who is enrolled, the account fields, the list of courses and memberships with prices, the payment option, the enrollment trigger name and the choices section
One feed: who is enrolled, which courses and memberships, and how the choices are listed.
Setting What it does
Student The logged-in user, or a new account for a visitor (the default); always a new account for the email in the form; or only the logged-in user, so visitors are skipped.
Email that already has an account Refuse (the default): an error note is written and nobody is enrolled. Or enroll that account: only the enrollment is added, nothing else about the account changes.
Role of a new account The WordPress default role, or another role from the list. Roles that can manage the site, users or LifterLMS are never in the list.
New account e-mail Send the standard WordPress e-mail with a link to set a password, and optionally the new user notice to the administrators.
Account fields Map the email, and optionally a username, a password, first name, last name and display name.
Enroll in This list: everyone is enrolled in the ticked items. Or a choice field: the student picks.
Courses and memberships One tick box per published course and membership, with its price. With a choice field the ticked items are the only ones that may be picked.
Payment An item that is not free and is picked in a field needs a paid entry, unless you tick the option for forms that take no payment, such as an application.
Enrollment trigger name The reason LifterLMS stores with the enrollment. The entry id is added.
Condition Use the feed only when the conditional logic you set is met.

Account Safety

The add-on is careful with accounts, because a form is open to everyone.

  • It never takes over another account. An email that already belongs to a user is refused by default. When you allow it, the account only gains the enrollment: its name, password, role and everything else stay as they are.
  • It never hands out a role that can manage the site. Administrator, the LifterLMS manager, instructors and every role with the capability to edit users, install plugins or manage LifterLMS are refused, even if a feed was saved with one.
  • A username that is taken or not valid creates nothing. A typed username is cleaned of spaces and markup.
  • A logged-in user is enrolled directly, with no new account. A members-only feed skips visitors and says so in the entry notes.
  • A student who is already enrolled is left alone. A student whose enrollment expired or was cancelled is enrolled again by LifterLMS and the trigger name is updated.

Fixed Courses or a Choice Field

With This list, tick the courses and memberships and everyone who sends the form is enrolled in them. With A choice field, pick a drop down, radio buttons, check boxes, a multi select or a product field. The answers may be the course or membership id or its title, so a choice field you typed by hand works too. Only published courses and memberships can be enrolled. A draft, an unknown id or an item outside your ticked list is refused and the entry gets an error note.

Joining a membership also gives the student the courses LifterLMS adds to that membership, because LifterLMS does that itself when the enrollment is made.

List the courses in the form

In the Choices section pick a field. Its choices are replaced by your published courses and memberships, each with its price, and the value of each choice is the id. You can list everything, only courses, only memberships, or only the items you ticked. The list follows your catalog, so a new course appears in the form without editing it.

Payments

If your payment add-on has the option to run feeds only after the payment is completed, tick Enroll only when payment is completed in the feed. The account is made and the student is enrolled when the payment is complete, not before. An item picked in a field that is not free is never enrolled for an unpaid entry. A course with no access plan counts as not free, so it needs a paid entry too, unless you tick the no-payment option or use the fixed list.

When a Course Is Completed or a Membership Ends

Change the action to When a course is completed or a membership ends. This feed does nothing when the form is sent. It runs when LifterLMS marks a course complete for a student, or when a membership of a student ends.

The completed or ended feed settings: the event, the memberships to watch, how it ended, the entry and notification options and the entry field map
The second feed type reacts when a course is completed or a membership ends.
  • Course completed uses the LifterLMS action lifterlms_course_completed. Choose the courses to watch, or none for every course.
  • Membership ends uses the LifterLMS action llms_user_removed_from_membership. LifterLMS has no membership completed event, so the end of a membership, expired or cancelled, is the event. Choose the memberships and whether it expired, was cancelled, or either.
  • Add an entry to the form for the student. Map the student email, name, username, the title, id and link of the course or membership, the type, the grade in percent for a course, how a membership ended and the date. The entry is owned by the student.
  • Send notifications of the form that use the event LifterLMS: course completed or LifterLMS: membership ended. Gravity Forms needs an entry for its merge tags, so with the entry option off the entry exists only while the notifications are sent.
  • Conditional logic can look at the values that would go in the entry.

Use it for a certificate request form, a feedback form after a course, a thank you e-mail, a renewal offer when a membership expires, or a win-back message when it is cancelled. The same event is never handled twice, even when another plugin fires the LifterLMS action again.

Merge Tags and Entry Notes

Merge tag Value
lifter_product_title in curly braces The title of the course or membership, or the titles separated by commas.
lifter_product_url in curly braces The link to it.
lifter_product_id in curly braces Its id.
lifter_product_price in curly braces Its price, or Free.
lifter_user_login in curly braces The username of the enrolled student.

They work in confirmations and notifications of the same form and appear in the merge tag list of the form editor. Each entry gets a note for every step: the account that was made, each course or membership that was enrolled with its trigger name, and the reason for anything that was not.

For Developers

The add-on enrolls with llms_enroll_student( $user_id, $product_id, $trigger ) and reads the state with LLMS_Student and llms_is_user_enrolled. It listens to lifterlms_course_completed and llms_user_removed_from_membership. Because enrollment goes through LifterLMS, any code that hooks llms_user_enrolled_in_course, llms_user_added_to_membership_level or the llms_user_course_enrollment_created actions runs as for any other enrollment.

Limits to Know

  • LifterLMS has no membership completed event. The membership event is the end of a membership.
  • The grade is the LifterLMS grade of the course. A course without quizzes has no grade and the cell stays empty.
  • The add-on does not take payments. Use a payment add-on and the option to enroll when the payment is completed.
  • It does not unenroll students. It follows the enrollments LifterLMS makes and ends.

Frequently Asked Questions

Do I need a paid LifterLMS add-on?

No. The add-on works with the free LifterLMS plugin from wordpress.org.

Will the student get the LifterLMS enrollment e-mail?

LifterLMS decides. The add-on enrolls through the LifterLMS function, so the notifications and engagements you set in LifterLMS run as for any enrollment.

Can a visitor enroll in a paid course for free?

Not through a choice field: an item that is not free needs a paid entry. Use the fixed list only for forms that really give the course away or that you approve first.

What happens when the email already has an account?

By default nothing: the entry gets an error note. If you allow it, only the enrollment is added to that account.

Does it send data outside my site?

No. Everything happens on your own site. Only the license check talks to gravityextra.com, when you press Activate.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr