Skip to main content

5.4 Gravity Forms Lesson/Topic Completion

The Gravity Forms Lesson/Topic Completion feature turns a Gravity Forms form into a completion gate: you attach a form to a lesson or topic, and when a learner submits it, that step is marked complete and the learner moves on to the next one.

Use it for reflection prompts, assignments, or any step where you want a learner response instead of a plain Mark Complete click.

Before you begin

This feature requires the Gravity Forms plugin to be installed and active. Install and activate Gravity Forms before enabling this feature.

Enable the feature

  1. Make sure Gravity Forms is installed and active, and create the form you want learners to submit.
  2. Go to Settings > Tweaks for LearnDash.
  3. Tick Gravity Forms Lesson/Topic Completion and click Save Changes.

Attach a form to a lesson or topic

  1. Edit the lesson or topic and open its Settings tab.
  2. In Display and Content Options, find the Gravity Form for Lesson/Topic Completion field.
  3. Select your form and update the post.

The Gravity Form for Lesson/Topic Completion field in LearnDash lesson settings with a form selected

Display the form to learners

Place the matching shortcode in the lesson or topic content where the form should appear:

ShortcodeUse in
[gravityform-lesson]Lesson content
[gravityform-topic]Topic content

Each shortcode displays the form selected in that post's settings. The shortcode itself takes no form ID.

What happens on submission

When a logged-in learner submits the form:

  1. The form entry is saved in Gravity Forms as usual.
  2. The lesson or topic is marked complete for that learner.
  3. The learner is redirected to the next step in the course.

A lesson page with an embedded Gravity Forms form used to complete the lesson Submitting the form completes the lesson and moves the learner to the next step.

Notes

  • The learner must be logged in and enrolled for the completion to be recorded.
  • The form's own confirmations and notifications keep working normally. Completion happens in addition to standard Gravity Forms behaviour.