Storyline 360 Tutorial

Articulate Storyline 360: How to Create a PDF Containing Text Entry Data Using JavaScript

Capturing user responses such as course reflections, survey answers, or open-ended assessment entries and compiling them into a downloadable PDF document improves learner engagement and record-keeping in corporate training.

While Articulate Storyline 360 does not feature native single-click PDF output for arbitrary text variables, integrating an HTML Web Object combined with custom JavaScript allows you to generate dynamic PDF reports instantly upon user completion.

Watch Tutorial
See variable mapping and Web Object setup in action.

Primary Use Cases for Custom PDF Exports

  • Training Reflection Summaries

    Allow learners to download personal notes or action plans drafted during interactive lessons.

  • Open-Ended Survey Records

    Capture user feedback and export a permanent copy for offline submission or reference.

  • Certificate & Completion Verification

    Generate custom progress summaries containing learner names and validated responses.

  • Compliance Documentation

    Provide downloadable copies of user-submitted regulatory acknowledgments.

Step-by-Step Guide to Exporting PDF Data

  1. 01

    Prepare Your Code File

    Create a blank document in a text editor (such as Notepad++ or Brackets) and save it as data.html or certificate.html.

  2. 02

    Define HTML Parameters & PDF Content Structure

    Configure your HTML file to define PDF output titles, question label fields, dynamic variable names, and PDF rendering libraries (such as pdfMake or jsPDF). Save the document.

  3. 03

    Insert a Web Object in Storyline

    • Open your Articulate Storyline project slide.
    • Navigate to the Insert tab on the top ribbon menu.
    • Select Web Object.
  4. 04

    Link Your Local HTML Directory

    In the Web Object Properties dialog box, enter the folder path housing your certificate.html or data.html file into the Address field, then click OK.

  5. 05

    Assign the JavaScript Execution Trigger

    Create a button (e.g., "Download PDF") and attach an Execute JavaScript trigger. Add the script below to locate the embedded iframe and trigger the generation script:

    // Name of the target HTML file var certFilename = 'certificate.html'; // Collect all iframe elements on the page var iframeElements = document.getElementsByTagName("iframe"); // Iterate through iframe elements to trigger PDF generation for(var i = 0; i < iframeElements.length; i++){ var src = iframeElements[i].getAttribute('src'); if (src && src.indexOf(certFilename) !== -1) { iframeElements[i].contentWindow.generatePDF(); } }
  6. 06

    Publish and Execute

    Publish the course output (Web or SCORM/xAPI). Launch the lesson via story.html to enter text field responses and trigger your PDF download.

Video Tutorial Walkthrough

Watch the complete demonstration to see variable mapping and Web Object setup in action:

Implementation Reference Guide

Configuration Phase Action Item Target Result
Variable Mapping Match Storyline variable names to JavaScript properties. Ensures learner inputs map directly to designated PDF text lines.
Iframe Target Match certFilename string to the exact Web Object file name. Directs the download button trigger to execute within the target window.
Output Verification Test inside published story.html outputs rather than inside preview mode. Guarantees local cross-origin browser rules do not block iframe script execution.
FAQ

Frequently Asked Questions

Does this JavaScript approach require an active internet connection?

If your embedded Web Object references locally hosted PDF generation libraries (such as pdfMake.min.js), the PDF generates offline without external server requests.

Can I export multi-line text entry fields into the generated PDF?

Yes. Standard multi-line variables in Storyline 360 map directly into JavaScript string arrays, preserving text formatting and line breaks inside the PDF document.

Why does the download trigger fail to execute in Storyline Preview mode?

Articulate Storyline restricts Web Object cross-domain scripting and local file access inside internal Preview mode. Full testing requires running the published output in a standard web browser.

Turnkey Enterprise Training Solutions

Regulatory Compliance & Workplace Safety

SCORM/xAPI-compliant packages built for seamless deployment across enterprise Learning Management Systems (LMS):

  • Workplace Health & Safety (WHS), hazardous material handling (WHMIS/OSHA), and emergency response.
  • Environmental health standards, height safety protocols, and PPE compliance.

Free Corporate Professional Development

Pre-built enterprise modules focused on workforce upskilling:

  • Leadership and team management frameworks, business ethics, crisis management, and data privacy security (GDPR/HIPAA).
Related Solutions

Custom eLearning Development Services

Advanced Storyline Engineering

Custom JavaScript extensions, dynamic reporting widgets, complex branching scenarios, and LMS integrations.

Learn more about Advanced Storyline Engineering

PPT to E-learning Conversion

Converting static legacy slide decks, training manuals, and compliance documentation into interactive digital modules.

Learn more about PPT to E-learning Conversion

eLearning Localization & Translation

Multi-language course translation, right-to-left layout adjustments, localized audio dubbing, and global SCORM compliance.

Learn more about eLearning Localization & Translation
Get in Touch

Ready to Transform Your Training?

Get a tailored project proposal, custom timeline, and a free SCORM sample built directly from a slice of your existing training materials.

  • Free Proof-of-Concept

    Send us a short document or presentation, and we'll transform it into an interactive SCORM sample so you can judge our instructional design.

  • Expert Consultation

    Talk directly with our eLearning specialist to align your business goals with the right technology stack.

  • Transparent Pricing

    Clear cost estimates and realistic project milestones delivered with zero hidden fees.

Prefer direct email? Reach our lead team at [email protected].

Send Us a Message

Fill in a few details and we'll get straight back to you.