Title: Export grades using JavaScript
Last modified: January 27, 2021

---

# Export grades using JavaScript

 *  Resolved [richard98589](https://wordpress.org/support/users/richard98589/)
 * (@richard98589)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/export-grades-using-javascript/)
 * I have iSpring quizzes embedded in my lessons that allow me to execute JavaScript
   or ‘Send quiz results to server’ on completion of a quiz. Is there a way that
   I can send the final quiz result to the student’s grade records for that quiz?
   Should I be looking at the `LifterLMS::grades()` function or can you point me
   in the right direction please?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Toyin](https://wordpress.org/support/users/jnr4u2/)
 * (@jnr4u2)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/export-grades-using-javascript/#post-13963790)
 * Hi [@richard98589](https://wordpress.org/support/users/richard98589/)
 * You can look into this class and use the filters there:
    [https://github.com/gocodebox/lifterlms/blob/4.13.0/includes/class-llms-grades.php](https://github.com/gocodebox/lifterlms/blob/4.13.0/includes/class-llms-grades.php)
 * So basically you can save the result of the quiz where you want in the DB.
    Then
   you can use the filters to return the saved value when needed.
 * > Should I be looking at the LifterLMS::grades() function or can you point me
   > in the right direction please?
 * Yes, because that function will bring you almost immediately here [https://github.com/gocodebox/lifterlms/blob/4.13.0/includes/class-llms-grades.php](https://github.com/gocodebox/lifterlms/blob/4.13.0/includes/class-llms-grades.php)
 * Let us know if this helps.
 * Thank you 🙂
 *  [Toyin](https://wordpress.org/support/users/jnr4u2/)
 * (@jnr4u2)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/export-grades-using-javascript/#post-13998029)
 * Since I haven’t heard back from you in a week I’m going to mark this thread as
   resolved. Don’t worry, if you have more questions or still need help just hit
   reply and let me know!
 * Have a great day!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Export grades using JavaScript’ is closed to new replies.

 * ![](https://ps.w.org/lifterlms/assets/icon.svg?rev=2034507)
 * [LifterLMS - WP LMS for eLearning, Online Courses, & Quizzes](https://wordpress.org/plugins/lifterlms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lifterlms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lifterlms/)
 * [Active Topics](https://wordpress.org/support/plugin/lifterlms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lifterlms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lifterlms/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Toyin](https://wordpress.org/support/users/jnr4u2/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/export-grades-using-javascript/#post-13998029)
 * Status: resolved