Forum Discussion

JohnnieMoore's avatar
JohnnieMoore
Community Member
2 days ago

Ppass and retrieve custom variables for MOODLE?

Anyone know how to pass and retrieve custom variables for MOODLE?

4 Replies

  • SBP_Inc's avatar
    SBP_Inc
    Community Member

    Storyline side I would point you to threads like this one that show quite a bit of the javascript required to set and read SL project variables. Moodle side I would leverage your favorite search engine or AI coding assistant to find workable code. Sorry, I cannot share code I've written for clients.

    • JohnnieMoore's avatar
      JohnnieMoore
      Community Member

      I understand, I have the same problem applying for work. Many want a portfolio.  Much of my work is either classified or proprietary. So I don't keep much. I have 40 years of training analysis, design, and devolpment for both ILT and eLearning. Over 100 eCourses developed with Toolbook, Lectora, Articulate, and Captivate.

  • SBP_Inc's avatar
    SBP_Inc
    Community Member

    I've had to add javascript on both the Moodle and Storyline sides to pass custom variables. Publish the SL as SCORM then use the lmsApi to exchange data, and set variables in Storyline as needed.

    • JohnnieMoore's avatar
      JohnnieMoore
      Community Member

      Thank for your response.

      Could you post the scripts for both storyline and MOODLE? I am not very familiar with javascript, espcially in MOODLE.