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

Gravity Forms Canvas LMS Premium Add-on Setup Guide

Updated 8 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Create an access token in Canvas
  4. Connect the add-on
  5. Add a Canvas LMS feed
  6. Student
  7. Enrollment
  8. What happens on submit
  9. Notifications and merge tags
  10. Retries that never create duplicates
  11. When something goes wrong
  12. Privacy and security
  13. Frequently asked questions

Video walkthrough

Gravity Forms Canvas LMS Add-On Setup Guide: Course Enrollment from Entries (WordPress Side)
Video setup guide: Gravity Forms Canvas LMS Watch on YouTube

The Gravity Forms Canvas LMS Premium Add-on connects your WordPress forms to Canvas LMS, the learning management system from Instructure used by schools, universities and training teams. When someone sends a form, the add-on finds the Canvas user with the same email address, or creates one, and enrols that user into the course you choose as a student, teacher, TA, observer or designer. A registration page, a waitlist, an application or a paid sign-up form can put people straight into the right course without anyone retyping names into Canvas.

It works with any Canvas you can reach over the internet: a Canvas hosted on Instructure or a self-hosted Canvas on your own server, even one that lives in a sub-folder or on its own port. You enter the address and a personal access token; the token is stored encrypted, and the add-on only ever contacts the Canvas address you set. This guide walks through the setup, every feed option, retries, notifications and what happens when something goes wrong.

What you need

  • WordPress with Gravity Forms 2.9 or newer.
  • PHP 7.4 or newer, with the OpenSSL extension (for encrypting the token at rest).
  • An active license key for this add-on.
  • A Canvas account whose token may create users and enrol students in the courses you plan to use — an account admin, or a teacher for a course they teach.

If Gravity Forms is missing or older than 2.9, the add-on shows a notice in the WordPress admin and does nothing else, so a form is never left half connected.

Create an access token in Canvas

Canvas uses a personal access token to authenticate API calls. Any Canvas user can create one, and no partner approval or app registration is needed. In Canvas, open the Account menu, choose Settings, scroll to Approved Integrations and click New Access Token. Give it a purpose such as “Gravity Forms enrollments”, leave the expiry blank for a token that does not expire, and click Generate Token. Copy the token straight away — Canvas shows the full value only once.

The token carries the permissions of the account that created it. To both create new users and enrol them, use a token from an account administrator. If you only enrol users that already exist in a course you teach, a teacher token for that course is enough; turn off “Create the Canvas user” on the feed in that case. Keep the token private: anyone with it can act as you in Canvas.

Connect the add-on

In WordPress, open Forms → Settings → Canvas LMS. Activate your license key at the top of the page, then fill in the Canvas connection section.

  • Canvas address — the address you open Canvas with, for example https://yourschool.instructure.com or https://canvas.yourschool.edu. Enter the root address only; do not add /api/v1. The add-on accepts only https:// addresses, and refuses private or local hosts unless you allow them with a filter.
  • Access token — paste the token you created in Canvas. It is stored encrypted with AES-256-GCM, shown as a password field, and never displayed again. To replace it later, type a new one; leave it blank to keep the stored one.
  • Account ID — the Canvas account that students are looked up and created in. Use self for the account of your token, or a numeric account id for a sub-account. This matters only for finding and creating users; enrolling always uses the course id on the feed.

Click Test connection. The add-on calls GET /api/v1/users/self and shows who the token belongs to. The test reads only — it never creates a user or an enrollment. If the token or the address is wrong, the error message explains why, and the token itself is never shown in any message.

https://gravityextra.com/wp-content/uploads/2026/10/gfcv-settings.png
The Canvas LMS settings page: license key, Canvas address, access token, account id and the Test connection result.

For a Canvas that runs inside your own network, or only over plain http:// on a test server, two filters let it through: gfcv_allow_private_hosts (return true for the one host you trust) and gfcv_allow_insecure_http. Use them deliberately; by default every private address is refused so a token can never be sent to the wrong place.

Add a Canvas LMS feed

Open the form you want to connect, go to Settings → Canvas LMS and click Add New. A feed decides which submissions enrol someone and how.

https://gravityextra.com/wp-content/uploads/2026/10/gfcv-feed.png
The Canvas LMS feed: the student email and name, the create-user toggle, the course id, the enrollment type, a custom role and the condition.

Student

  • Student email (required) — the merge tag of your email field, for example {Email:2}. The add-on enrols the Canvas user with this email, matched exactly. A fuzzy near miss is never used, so one person is never confused with another.
  • Student name — optional, used only when a new Canvas user is created, for example {Name:1}. An existing user is never renamed.
  • Create the Canvas user — when no account has the email and this is on, the add-on creates the user with a login (pseudonym) for that email. Turn it off if you only want to enrol users who already exist; a missing user then leaves a clear note and nothing is created.

Enrollment

  • Course ID (required) — the numeric Canvas course id, the number in the course address /courses/1234. A merge tag can set it from a form choice, for example {Course:5:value} with the course id as the value, so one form enrols into different courses.
  • Enroll as — student, teacher, TA, observer or designer. The student role is the usual choice for a registration form.
  • Custom role ID — optional, a numeric Canvas role id for an account custom role, used instead of the base role above.
  • Notify — when on, Canvas emails the student about the enrollment. Leave it off to enrol silently.
  • Condition — optional conditional logic, so a feed enrols only when the entry matches, for example only when a payment field says the order is paid.

A form can have several feeds. One form can enrol a student into an orientation course and, under a condition, into an advanced course as well, each with its own type and role.

What happens on submit

When a matching entry is saved, the add-on searches your Canvas account for the user with the submitted email (GET /api/v1/accounts/:account_id/users). If a user with exactly that email exists, it is used. If not and the feed allows it, the add-on creates the user (POST /api/v1/accounts/:account_id/users) with a pseudonym so the email becomes the login. It then enrols the user into the course (POST /api/v1/courses/:course_id/enrollments) with the enrollment type, the state set to active and any custom role.

https://gravityextra.com/wp-content/uploads/2026/10/gfcv-form.png
A front-end enrollment form: name, email, organization, course and role. The visitor sees only the confirmation after sending.

Every call carries the token in the Authorization: Bearer header, never in the address, and never follows a redirect to another host. The add-on then writes a note on the entry with the user id, the enrollment id and a link to the student in the course, and saves the enrollment id and the course link as entry meta. The merge tags {canvas_enrollment_id}, {canvas_enrollment_url} and {canvas_user_id} are available in your notifications, so a welcome email can link straight to the course.

https://gravityextra.com/wp-content/uploads/2026/10/gfcv-entry-scaled.png
The entry screen after submission: the form answers and the Canvas note with the user, the enrollment and the course link.

Notifications and merge tags

The add-on adds two notification events to a form that has a feed: Canvas student enrolled and Canvas enrollment failed. Create a notification and choose one of these events to email a student a welcome message when the enrollment succeeds, or alert your team when it does not. In any notification you can use {canvas_enrollment_url} to link to the course and {canvas_enrollment_id} for your records.

Retries that never create duplicates

Networks fail. If the enrollment request is sent but the reply is lost, the add-on marks the attempt and, on a retry or a Resend, lists the course enrollments of that user and reuses the one it already made instead of enrolling again. A user created a moment earlier by another request (Canvas answers “login already in use”) is found and reused rather than duplicated. A feed that is already running for an entry is never sent twice. The result: one user and one enrollment per entry, however many times the feed runs.

When something goes wrong

A failed Canvas call never blocks the submission. The visitor always sees the confirmation, the entry is always saved, and the add-on writes a clear error note on the entry and sends the “enrollment failed” notification. An invalid course id or email makes no request at all and leaves a short note. A wrong token, a course that does not exist, a user the token may not manage, or a timeout each leave a message that says what happened — and the token is removed from every message and is never written to a log.

Privacy and security

The access token is encrypted on your site with a key derived from your WordPress salts, so a copied database alone cannot read it, and it is never shown again or logged. For stricter setups, define GFCV_API_TOKEN in wp-config.php and the add-on uses that instead of the stored value. The add-on contacts only the Canvas address you set: the host is locked, private addresses are refused, redirects are not followed, and TLS verification is always on. The only data sent to Canvas is the email, the name you map and the course and role — what Canvas needs to enrol the student.

Frequently asked questions

Can one form enrol into different courses? Yes. Put the course id behind a merge tag such as {Course:5:value} and set each choice value to a course id, or use several feeds with conditions.

What if the student already has a Canvas account? They are matched by exact email and enrolled; no second account is made and the existing name is kept.

Does it work with a self-hosted Canvas? Yes, including one on a sub-path or a custom port. Enter the full address; an internal host needs the gfcv_allow_private_hosts filter.

Will the student get an email? Only if you turn on Notify, or if you send your own Gravity Forms notification on the “enrolled” event.

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