Forum Discussion

RochelleFran824's avatar
RochelleFran824
Community Member
2 months ago

Linking Multiple Storyline Workbooks for Bulk Printing in Rise Course

Hi there,

I'm hoping someone can help me out. I have a workbook storyline file where learners can type in their answers to questions and then print it out. This storyline is part of my Rise course, and I have several workbooks throughout. I'd love for learners to print all of them together at the end of the course. Is there a way to link these together and pull content from multiple storylines?

Thanks!

3 Replies

  • u could us local storage to collate the data and then read it back in and print as a PDF

  • Thanks Phil that's definitely put me in the right direction, i'm going to try the following:

    You can use local storage in Storyline to store learners' answers across multiple workbooks and retrieve them at the end of the course to generate a single printable document. Here’s a step-by-step guide to achieve this:

    Step 1: Store Learner Inputs in Local Storage

    Since Storyline doesn’t have built-in functionality to transfer data between multiple Storyline modules in a Rise course, you can use JavaScript to store answers in the browser's localStorage.

    1. Assign Variables to Text Entries
      • In Storyline, create text entry fields for learners to type their answers.
      • Assign a variable to each field (e.g., answer1, answer2, etc.).
    2. Use JavaScript to Save Answers
      • Add a Trigger to run JavaScript when the learner clicks a "Save" button.
      • Use the following JavaScript to store the data:
      • Repeat this for each workbook, using different variables.

    Step 2: Retrieve Data Across Workbooks

    When learners reach the final section of the course where they need to print all workbooks together:

    1. Use JavaScript to Retrieve Data
      • Add a trigger to run JavaScript when the "Print All Workbooks" button is clicked.
      • Use the following JavaScript to pull all stored answers:
    2. Display the Answers in a Printable Format
      • Create a new slide where you display all retrieved answers.
      • Use text boxes referencing the variables (%answer1%, %answer2%, etc.).

    Step 3: Print All Answers as a PDF

    Once all answers are displayed on a single page, you can use JavaScript to trigger a print function.

    1. Add a "Print" button with a JavaScript trigger:
    2. If you want a more polished PDF output, you can use jsPDF (a JavaScript library) to format and save the file.

    Step 4: Clear Local Storage (Optional)

    If you want to reset stored answers when learners finish the course, use:

    javascriptCopyEditlocalStorage.clear();

    Summary

    1. Store learner inputs using localStorage.setItem().
    2. Retrieve data across workbooks using localStorage.getItem().
    3. Display the collected responses on a final page.
    4. Use JavaScript to print or save as a PDF.

    This method ensures that learners can type in answers across multiple Storyline modules in Rise and print everything together at the end. Let me know if you need any refinements! 🚀

    javascriptCopyEditvar doc = new jsPDF();var answer1 = localStorage.getItem("answer1");var answer2 = localStorage.getItem("answer2");

    doc.text(20, 30, "Workbook Answers:");
    doc.text(20, 50, "Answer 1: " + answer1);
    doc.text(20, 70, "Answer 2: " + answer2);

    doc.save("workbook_answers.pdf");javascriptCopyEditwindow.print();


    Fingers crossed this works 🤞

  • There are examples on here, use the console in your browser and use the errors to prompt the LLM to get closer to the answer