Run a LifterLMS Affiliate Program With AffiliateWP
Set up a LifterLMS affiliate program with AffiliateWP: per-course commission rates, affiliate coupons, recurring payments, refunds, and an affiliate…
Read articleGravity Forms is the form plugin many serious WordPress sites already own, and it pairs well with an LMS. Course creators use it to collect intake questionnaires, signed agreements, reflection journals, file uploads and detailed registration data that the standard LifterLMS forms do not ask for.
The LifterLMS Gravity Forms add-on joins the two. This guide explains what the add-on does and does not do, how to set up required lesson forms and custom registration, and where custom code or another plugin is the better tool. It is for site owners and developers who already use, or are about to buy, Gravity Forms.
Two licences are involved. The add-on is sold by LifterLMS and does not include Gravity Forms, which you buy from Gravity Forms. Replacing registration forms also needs the Gravity Forms User Registration add-on, which at the time of writing requires a Gravity Forms Elite or Nonprofit licence.
What it does not do: it does not turn Gravity Forms into a quiz engine or a graded assignment tool, and it does not enroll people in courses from any form you like. Those jobs belong to LifterLMS quizzes, the Assignments add-on, or an automation plugin, covered further down.
The LifterLMS Gravity Forms getting started guide lists the current version requirements. At the time of writing they are LifterLMS 6.0, WordPress 5.6 and PHP 7.4 or later.
This is the main reason most sites buy the add-on. Typical uses are a pre-course intake form, a liability waiver before a practical module, a reflection after each lesson or a project upload a coach reviews.
Build the form in Gravity Forms, then place it in the lesson content with the Gravity Forms block or shortcode. When the lesson is saved, the add-on records that the lesson has a form. Keep one form per lesson so it is clear which submission counts.
The requirement can be set at three levels, and the most specific one wins.
| Level | Where | Options |
|---|---|---|
| Site default | LifterLMS > Settings > Integrations > Gravity Forms, Lesson Completion | Form submission is required for lesson completion or Form submission is optional |
| Course | Course Options meta box, Gravity Forms tab | Use the site default, or make every lesson form in the course required or optional |
| Lesson | Lesson Settings meta box, Gravity Forms tab | Use the site default, use the course setting, or set this lesson to required or optional |
A sensible pattern is "optional" as the site default and "required" on the specific lessons where the form matters, such as a waiver. That way a form added later for feedback does not accidentally block students.
On a required lesson the student submits the form, then completes the lesson. Test the full path as a student on staging, including the confirmation message, because the form's confirmation settings decide what the student sees right after submitting. If you use AJAX submission, the add-on can redirect after the confirmation, controlled by the filters below.
If you need graded work with instructor feedback, a Gravity Form is the wrong tool. Use the LifterLMS Assignments add-on, described in our LifterLMS assignments guide.
LifterLMS already has a block-based form editor for its registration, checkout and account forms, and you can add fields there. Our guides to LifterLMS registration and account forms and custom fields on LifterLMS forms cover that route. Choose Gravity Forms instead when you need conditional logic, multi-page registration, file uploads, calculated fields or Gravity Forms' own add-ons at sign-up.
Under LifterLMS > Settings > Integrations > Gravity Forms, the User Management Forms section has four dropdowns:
| Setting | Shown to | User Registration feed action |
|---|---|---|
| Checkout Registration Form | Logged-out visitors at checkout | Create User |
| Checkout Update Form | Logged-in students at checkout | Update User |
| Open Registration Form | Visitors, when open registration is enabled | Create User |
| Account Update Form | Students on the account tab of the dashboard | Update User |
The checkout form itself, with the payment fields, cannot be replaced. With a Gravity Forms registration form, checkout becomes two steps: the visitor completes the registration form, is logged in, then sees the LifterLMS checkout to pay or confirm a free enrollment. LifterLMS engagements tied to registration still fire for users created this way. Details are in the custom registration forms documentation.
A two-step checkout can lower conversion on paid courses. Use it where the extra data is worth that cost, and keep the first step short.
The add-on documents an action, llms_gform_lesson_form_completed, which passes the Gravity Forms entry, the form and the lesson ID. It also documents filters including llms_gform_ajax_redirect_url and llms_gform_ajax_redirect_delay for redirects after an AJAX submission.
A common request is to tell the course's instructors when a student submits a lesson form. This snippet does that with real LifterLMS methods. Put it in a small custom plugin, not in the theme:
add_action( 'llms_gform_lesson_form_completed', 'llmsx_notify_instructors_of_lesson_form', 10, 3 );
function llmsx_notify_instructors_of_lesson_form( $entry, $form, $lesson_id ) {
$lesson = llms_get_post( $lesson_id );
if ( ! $lesson || ! is_a( $lesson, 'LLMS_Lesson' ) ) {
return;
}
$course = $lesson->get_course();
if ( ! $course ) {
return;
}
$student = get_userdata( absint( $entry['created_by'] ?? 0 ) );
$name = $student ? $student->display_name : __( 'A student', 'llmsx' );
$subject = sprintf( '%s submitted the form on "%s"', $name, get_the_title( $lesson_id ) );
$link = admin_url( 'admin.php?page=gf_entries&view=entry&id=' . absint( $form['id'] ) . '&lid=' . absint( $entry['id'] ) );
foreach ( $course->get_instructors( true ) as $instructor ) {
$user = get_userdata( $instructor['id'] );
if ( $user ) {
wp_mail( $user->user_email, $subject, "View the entry:\n" . $link );
}
}
}
The add-on also adds a form-completed trigger to LifterLMS engagements, so for a simple thank-you email or an achievement you may not need code at all. See LifterLMS engagements and automated emails.
Sometimes the job is not "gate a lesson" but "do something in LifterLMS when any form is submitted".
llms_enroll_student() after the payment is confirmed. Do not enroll on submission alone when payment is involved.No. You need your own Gravity Forms licence. The LifterLMS add-on only connects the two.
Only to replace LifterLMS registration, checkout registration or account forms. Lesson forms work without it.
No. You can replace the registration and customer information parts. Payment stays on the LifterLMS checkout.
Not in a way LifterLMS grades. Use LifterLMS quizzes for scored assessments and Gravity Forms for data collection.
Pick one lesson where a form really matters, such as an intake form or waiver, make it required on that lesson only, and test it end to end with a student account. Add custom registration later, once you know which extra fields you actually use.
If you need form submissions to drive enrollment, reporting or a CRM, our LifterLMS integrations service builds and tests those connections. Describe your forms and course flow and we will recommend the simplest setup.
Set up a LifterLMS affiliate program with AffiliateWP: per-course commission rates, affiliate coupons, recurring payments, refunds, and an affiliate…
Read article
How WP Fusion connects LifterLMS to HubSpot, ActiveCampaign, Keap, FluentCRM and dozens of other CRMs: tags on enrollment and completion…
Read article
Ten LifterLMS Zapier automations you can build today, from Slack alerts to spreadsheet enrollments, plus what the LifterLMS Zapier app can and cannot…
Read articleSkip the trial and error. Get specialist LifterLMS help and ship faster.