Skip to main content

Complete a Lesson with a Gravity Form

This guide walks through replacing a lesson's Mark Complete click with a form submission, for example a short reflection the learner writes before moving on.

You need: LearnDash, Gravity Forms, and Tangible Tweaks for LearnDash installed and active.

1. Create the form

In Forms > New Form, build the form learners will submit. A single paragraph field like "What did you take away from this lesson?" is enough. See the Gravity Forms form guide if you're new to it.

2. Enable the feature

Go to Settings > Tweaks for LearnDash, tick Gravity Forms Lesson/Topic Completion, and click Save Changes.

3. Attach the form to the lesson

  1. Edit the lesson and open its Settings tab.
  2. In Display and Content Options, set Gravity Form for Lesson/Topic Completion to your form.
  3. Update the lesson.

4. Place the form in the lesson content

Switch to the Lesson page tab and add the shortcode where the form should appear, typically at the end of the lesson content:

[gravityform-lesson]

Update the lesson again.

5. Test as a learner

Open the lesson as an enrolled learner (a separate test account, or a private browser window):

  1. The form appears where you placed the shortcode.
  2. Fill it in and click Submit.
  3. The lesson is marked complete and you are taken to the next step in the course.

That's the whole flow. The form entry is stored in Gravity Forms under Forms > Entries, so you can read what learners submitted.

tip

The same pattern works for topics: select the form in the topic's settings and use [gravityform-topic] in the topic content.