🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 22, 2026

How to Enroll Learners in Sensei LMS Courses From a Gravity Forms Form

GravityExtra
How to Enroll Learners in Sensei LMS Courses From a Gravity Forms Form

A course site lives on two things: getting people in, and knowing what happens to them. Gravity Forms is excellent at the first part, with forms for applications, free trials, intake questions and paid sign-ups. Sensei LMS is a free learning management plugin that holds the courses, the lessons, the quizzes and the learners. The gap between them is the moment after a form is sent: someone has to create the account, open the right course and tell the learner. This guide shows how to connect the two so that a Gravity Forms form enrolls learners in Sensei LMS courses by itself, and how to react when a learner completes a course.

A Gravity Forms form whose drop down lists the Sensei LMS courses: Photography Basics, Portrait Lighting Masterclass marked paid, Quick Start Lens Guide and Invite-only Workshop
The drop down is filled by the add-on with your published courses.

The Problem With Doing It by Hand

Many small schools start the same way. A form collects name and email. Someone reads the entries every morning, creates a user in WordPress, opens the Learner Management screen of Sensei LMS and adds the course. It works for five learners a week. It breaks at fifty, and it breaks on the first Monday after a holiday. People wait for access, the wrong course is opened, or an account is created twice with two different emails.

The Gravity Forms Course Access Premium Add-on from GravityExtra does that work for you. A feed on the form creates or finds the account and enrolls it in the courses you choose, using the course enrolment API that Sensei LMS itself provides. Sensei LMS then behaves as if you had enrolled the learner by hand: it keeps its own records and its own hooks run.

What You Need

  • Gravity Forms with a form that has at least an email field.
  • The free Sensei LMS plugin from the WordPress plugin directory, with at least one published course.
  • The Gravity Forms Course Access Premium Add-on.

Step 1: Decide Who Gets Enrolled

The first choice is the learner. For a public form, the default is right: a visitor gets a new account made from the email in the form, and a logged-in user is enrolled directly, with no second account. If a form is only for people who already have an account, choose the option that enrolls only the logged-in user, and visitors are skipped with a note. If every submission should make a fresh account, choose that instead.

Then decide what happens when a visitor types an email that already belongs to an account. The safe default is to refuse: nobody is enrolled and the entry gets an error note. This matters more than it looks. If a form could change an existing account, anybody could type the email of an administrator and change a password or a role. The add-on never takes over another account. When you allow existing emails, the account only gains the enrollment, and its name, password and role stay exactly as they were.

The course access feed settings in Gravity Forms: who is enrolled, the account fields, the list of courses, the payment option and the choices section
One feed: who is enrolled, which courses, and how the choices are listed.

Step 2: Keep Roles Safe

A new account gets the WordPress default role unless you choose another one, and the list holds only safe roles. Administrator, Teacher, Editor and any role that can edit users, install plugins, edit courses or manage Sensei LMS are never offered, and they are refused even if a feed was saved with one by code. This matters on a school site, because the Teacher role of Sensei LMS can create and edit courses, and nobody should get it by filling in a form.

Step 3: Choose the Courses

You have two ways to say what the learner gets. The first is a fixed list: tick the courses in the feed and everybody who sends the form gets them. That fits an application you approve, a free taster course, or a form on the page of one course.

The second way is a choice field. Let the learner pick a course in a drop down, radio buttons or check boxes. The answers may be ids or titles. Only published courses can be enrolled, and if you tick courses in the feed, only those can be picked. A forged request that names a draft course or something outside your list does nothing but add an error note to the entry.

Sensei LMS lets a teacher switch off self-enrollment for a course, for example for an invite-only workshop. The add-on respects that setting: such a course is never enrolled from a choice a visitor makes. You can still tick it in the feed yourself, because then it is your decision.

You do not have to build the choices by hand. In the Choices section pick the field and the add-on fills it with your published courses, for example Photography Basics and Quick Start Lens Guide. A new course shows up in the form as soon as you publish it.

Step 4: Think About Payment

A form that sells a course should not enroll before the money arrives. Sensei LMS has no checkout of its own. Selling is done by a store extension that links a course to a product, and the add-on treats such a course as paid. If you use a payment add-on with Gravity Forms, tick the option in the feed to enroll only when the payment is completed. The account is made and the enrollment happens at that moment.

As a second guard, a paid course picked in a field is never enrolled for an entry that is not paid, whatever the form says. If your form sells courses that Sensei LMS shows as free, tick the payment option of the feed and every picked course needs a paid entry. If your form takes no payment because you review applications, use a fixed list.

Step 5: Know What Happened

The entry itself tells the story in its notes: the learner account that was made, each course that was enrolled with the Sensei LMS manual enrolment, and the reason for anything that was not, such as a learner who was already enrolled or a course that does not allow self-enrollment. A learner who a teacher had removed from the course is restored and the note says so.

React When a Course Is Completed

Enrollment is half of the story. The other half is what you do when a learner finishes. The add-on has a second kind of feed for that. It does nothing when a form is sent. It runs when Sensei LMS marks a course complete for a learner.

The course completed feed settings: the courses to watch, the entry and notification options and the entry field map
The second feed type reacts when a learner completes a course.

With a course completed, the feed can add an entry to a form, and the entry is owned by the learner. Map the learner name and email, the course title and link, the teacher, the grade when the course has graded quizzes, and the date. Use that form as a certificate request, a feedback survey or a testimonial request. Send the notifications of the form, for example an e-mail that congratulates the learner and asks what they thought, using the form merge tags.

The feed counts a completion once for each learner and course. If a learner resets the course in Sensei LMS and completes it again, the new completion counts. A teacher who marks a course complete from the learner management screen is counted as well. Choose the courses to watch, or watch all of them, and add conditions that look at the values that would go in the entry.

Merge Tags for Confirmations and E-mails

The add-on gives you five merge tags for the confirmation and the notifications of the same form: the title, link and id of the course, the name of its teacher, and the username of the learner. A confirmation can say that the learner is enrolled in the course and give the link to open it. If a learner joins two courses, the tags list both. If nothing was enrolled the tags are empty and never show raw braces.

A Few Practical Setups

  • A free taster: a form on the course page, a fixed list with the taster course, a new account for the visitor and the standard WordPress e-mail to set a password.
  • An application: a form with questions, a feed with a condition on a status field, and enrollment only when you approve.
  • A paid sign-up: a payment add-on, the feed set to enroll when the payment is completed, a choice field with your courses.
  • A certificate request: a completion feed that adds an entry to a form with the course title and the date, and notifies your team.
  • A next step offer: a completion feed that sends an e-mail with the link of the next course.

Questions People Ask

Do I need a paid Sensei LMS extension?

No. The add-on works with the free Sensei LMS plugin.

Will Sensei LMS still send its own e-mails?

Yes. The add-on enrolls through the Sensei LMS enrolment API, so the settings of Sensei LMS apply as for any enrollment.

Is it safe to put this on a public form?

The add-on never takes over an existing account, never hands out a role that can manage the site or the courses and never enrolls in a draft or a course outside your list. A paid course needs a paid entry when a learner picks it.

Does it send my data to another service?

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

Course Access is part of the GravityExtra collection of Gravity Forms add-ons. See the Gravity Forms Course Access Premium Add-on for the details, or read the setup guide in the documentation.

See the Course Access add-on

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