Rise 360: Beyond Blocks

Build a Multi-Block Questionnaire in Articulate Rise 360 Using localStorage

Learn how to build a multi-block questionnaire in Articulate Rise 360 using localStorage to save learner data across lessons and display it on a summary dashboard. This Rise 360 localStorage questionnaire tutorial includes complete code for four connected blocks with Bootstrap styling and automatic data persistence.

By Nathan Stoker · Published Jul 26, 2026 · Updated Sep 30, 2026 · 14 min read

Build a Multi-Block Questionnaire in Articulate Rise 360 Using localStorage

Have you ever wanted to collect learner information across multiple lessons in Rise 360, then display it all on a summary page? Standard Rise blocks can't do this because each multimedia block operates in isolation. With localStorage, you can bridge that gap and create truly connected learning experiences.

This tutorial shows you how to build a multi-block questionnaire system that saves learner responses throughout a course and displays them on a personalized dashboard. The technique works for onboarding forms, learning preference surveys, goal-setting modules, and any scenario where you need data to persist across Rise lessons.

Why localStorage Works Perfectly for Rise 360

Rise 360 courses load each multimedia block as a separate HTML document within an iframe. This architecture means JavaScript variables don't persist between blocks. However, localStorage provides browser-based storage that survives page navigation, making it ideal for Rise development.

When learners enter information in Block 1, that data saves to their browser's localStorage. When they reach Block 4, the summary dashboard retrieves all saved data and displays it in one place. The data even persists if learners close the course and return later—assuming they use the same browser.

This approach requires no server-side code, no LMS configuration, and works whether the course runs on Articulate Review, an LMS, or a web server. The browser handles all the storage automatically.

What You'll Build

This questionnaire system consists of four Rise multimedia blocks working together. Block 1 collects personal information including name, email, and department. Block 2 captures professional goals such as current role, career objectives, and skills to develop. Block 3 gathers learning preferences through radio buttons and dropdown menus. Block 4 displays all collected data in a polished dashboard with completion badges and timestamps.

Each input block features instant save confirmation, automatic data loading when learners revisit the block, and Bootstrap 5 styling for a professional appearance. The summary dashboard includes real-time updates, completion tracking, and a refresh button for manual data reloading.

Understanding the localStorage API

Before diving into the code, here's a quick primer on the localStorage methods you'll use throughout this project.

The localStorage.setItem(key, value) method stores data under a unique key name. Both the key and value must be strings, so you'll use JSON.stringify() to convert JavaScript objects to storable strings.

The localStorage.getItem(key) method retrieves stored data. It returns null if the key doesn't exist, and you'll use JSON.parse() to convert the stored string back to a JavaScript object.

These two methods handle 95% of localStorage operations. The browser manages all the persistence automatically—you just set and get values as needed.

Block 1: Personal Information Form

The first block establishes the pattern you'll use throughout the questionnaire. It creates a form with three text inputs, saves data to localStorage when the learner clicks Save, and loads any existing data when the block opens.

HTML Structure

The form uses Bootstrap 5 classes for responsive styling. A gradient background provides visual interest while maintaining readability. Each input field includes a label and placeholder text to guide learners.

<div class="container-fluid py-4">
  <div class="block-container">
    <h2 class="mb-4">📋 Block 1: Personal Information</h2>
    <div class="mb-3">
      <label for="fullName" class="form-label">Full Name</label>
      <input type="text" class="form-control" id="fullName" 
             placeholder="Enter your full name">
    </div>
    <div class="mb-3">
      <label for="email" class="form-label">Email Address</label>
      <input type="email" class="form-control" id="email" 
             placeholder="Enter your email">
    </div>
    <div class="mb-3">
      <label for="department" class="form-label">Department</label>
      <input type="text" class="form-control" id="department" 
             placeholder="Enter your department">
    </div>
    <button onclick="saveData()" class="btn btn-save">Save Information</button>
    <div id="savedIndicator" class="saved-indicator">
      ✓ Information saved successfully!
    </div>
  </div>
</div>

JavaScript for Saving and Loading

The JavaScript handles two main tasks. On page load, it checks localStorage for existing data and populates the form fields. When the learner clicks Save, it collects all field values and stores them as a JSON object.

// Load saved data on page load
window.addEventListener('DOMContentLoaded', function() {
  const savedData = localStorage.getItem('riseBlock1Data');
  if (savedData) {
    const data = JSON.parse(savedData);
    document.getElementById('fullName').value = data.fullName || '';
    document.getElementById('email').value = data.email || '';
    document.getElementById('department').value = data.department || '';
  }
});

function saveData() {
  const data = {
    fullName: document.getElementById('fullName').value,
    email: document.getElementById('email').value,
    department: document.getElementById('department').value,
    savedAt: new Date().toISOString()
  };
  
  localStorage.setItem('riseBlock1Data', JSON.stringify(data));
  
  // Show saved indicator with animation
  const indicator = document.getElementById('savedIndicator');
  indicator.classList.add('show');
  setTimeout(() => indicator.classList.remove('show'), 3000);
  
  // Mark block complete for Rise tracking
  if (typeof lmsAPI !== 'undefined' && lmsAPI.SetReachedEnd) {
    lmsAPI.SetReachedEnd();
  }
}

The savedAt timestamp lets you display when data was last modified in the summary dashboard. The lmsAPI.SetReachedEnd() call tells Rise 360 that the learner has completed the block, which matters for completion tracking.

Block 2: Professional Goals Collection

Block 2 introduces textarea and select elements while following the same localStorage pattern. The professional goals section captures more detailed information about career objectives.

This block demonstrates how different input types require slightly different value retrieval. Text inputs, textareas, and select dropdowns all use .value to get their content, making the JavaScript straightforward.

window.addEventListener('DOMContentLoaded', function() {
  const savedData = localStorage.getItem('riseBlock2Data');
  if (savedData) {
    const data = JSON.parse(savedData);
    document.getElementById('currentRole').value = data.currentRole || '';
    document.getElementById('careerGoal').value = data.careerGoal || '';
    document.getElementById('skillToLearn').value = data.skillToLearn || '';
  }
});

function saveData() {
  const data = {
    currentRole: document.getElementById('currentRole').value,
    careerGoal: document.getElementById('careerGoal').value,
    skillToLearn: document.getElementById('skillToLearn').value,
    savedAt: new Date().toISOString()
  };
  
  localStorage.setItem('riseBlock2Data', JSON.stringify(data));
  
  const indicator = document.getElementById('savedIndicator');
  indicator.classList.add('show');
  setTimeout(() => indicator.classList.remove('show'), 3000);
  
  if (typeof lmsAPI !== 'undefined' && lmsAPI.SetReachedEnd) {
    lmsAPI.SetReachedEnd();
  }
}

Notice the consistent naming convention: riseBlock2Data for the localStorage key and savedAt for the timestamp field. This consistency makes the summary dashboard code much cleaner.

Block 3: Learning Preferences with Radio Buttons

Block 3 introduces radio buttons, which require different handling than text inputs. Radio buttons share a name attribute, and you must query for the checked input rather than reading a value directly from an element ID.

Handling Radio Button Selection

Radio buttons present a unique challenge because multiple input elements share the same logical value. The querySelector method with a :checked pseudo-selector identifies which option the learner selected.

window.addEventListener('DOMContentLoaded', function() {
  const savedData = localStorage.getItem('riseBlock3Data');
  if (savedData) {
    const data = JSON.parse(savedData);
    
    // Radio buttons need special handling
    if (data.learningStyle) {
      const radio = document.querySelector(
        `input[name="learningStyle"][value="${data.learningStyle}"]`
      );
      if (radio) radio.checked = true;
    }
    
    document.getElementById('studyTime').value = data.studyTime || '';
    document.getElementById('weeklyHours').value = data.weeklyHours || '';
  }
});

function saveData() {
  const learningStyle = document.querySelector(
    'input[name="learningStyle"]:checked'
  );
  
  const data = {
    learningStyle: learningStyle ? learningStyle.value : '',
    studyTime: document.getElementById('studyTime').value,
    weeklyHours: document.getElementById('weeklyHours').value,
    savedAt: new Date().toISOString()
  };
  
  localStorage.setItem('riseBlock3Data', JSON.stringify(data));
  
  const indicator = document.getElementById('savedIndicator');
  indicator.classList.add('show');
  setTimeout(() => indicator.classList.remove('show'), 3000);
  
  if (typeof lmsAPI !== 'undefined' && lmsAPI.SetReachedEnd) {
    lmsAPI.SetReachedEnd();
  }
}

The template literal in the querySelector allows dynamic selection based on the stored value. This pattern works for any number of radio options without needing to hardcode each one.

Block 4: The Summary Dashboard

The summary dashboard brings everything together by reading all three localStorage keys and displaying the data in organized cards. This block demonstrates localStorage's power—data entered anywhere in the course appears instantly on this summary page.

Dashboard Architecture

The dashboard uses polling to detect data changes, since the storage event doesn't fire for changes made in the same browsing context. A 2-second interval checks for updates and refreshes the display automatically.

function loadBlock1() {
  const data = localStorage.getItem('riseBlock1Data');
  const container = document.getElementById('block1Content');
  
  if (data) {
    const parsed = JSON.parse(data);
    
    // Determine completion status
    const completionBadge = (parsed.fullName && parsed.email && parsed.department) 
      ? '<span class="badge badge-success">✓ Complete</span>'
      : '<span class="badge badge-warning">⚠ Incomplete</span>';
    
    container.innerHTML = `
      ${completionBadge}
      ${createDataRow('Full Name', parsed.fullName)}
      ${createDataRow('Email', parsed.email)}
      ${createDataRow('Department', parsed.department)}
      <div class="timestamp">Last updated: ${formatTimestamp(parsed.savedAt)}</div>
    `;
  } else {
    container.innerHTML = '<div class="empty-state">No data saved yet</div>';
  }
}

function loadAllData() {
  loadBlock1();
  loadBlock2();
  loadBlock3();
  
  // Check overall completion
  const block1 = localStorage.getItem('riseBlock1Data');
  const block2 = localStorage.getItem('riseBlock2Data');
  const block3 = localStorage.getItem('riseBlock3Data');
  
  if (block1 && block2 && block3) {
    if (typeof lmsAPI !== 'undefined' && lmsAPI.SetReachedEnd) {
      lmsAPI.SetReachedEnd();
    }
  }
}

// Auto-load and poll for changes
window.addEventListener('DOMContentLoaded', loadAllData);

setInterval(function() {
  // Poll for changes every 2 seconds
  loadAllData();
}, 2000);

Helper Functions for Clean Display

Two helper functions keep the code DRY (Don't Repeat Yourself). The formatTimestamp function converts ISO date strings to readable local time. The createDataRow function generates consistent HTML for each data field.

function formatTimestamp(isoString) {
  if (!isoString) return 'Not saved yet';
  const date = new Date(isoString);
  return date.toLocaleString();
}

function createDataRow(label, value) {
  if (!value) return '';
  return `
    <div class="data-row">
      <span class="data-label">${label}:</span>
      <span class="data-value">${value}</span>
    </div>
  `;
}

Complete Code: All Four Blocks

Below you'll find the complete HTML files for each block. Each file is self-contained with all HTML, CSS, and JavaScript needed to function. Simply copy the appropriate code into a multimedia block in Rise 360.

Block 1: Personal Information (Complete Code)

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Block 1: Personal Information</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <style>
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      padding: 0;
      margin: 0;
    }
    .block-container {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      padding: 2rem;
      border-radius: 12px;
    }
    .form-control:focus {
      border-color: #667eea;
      box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    }
    .btn-save {
      background-color: #ffffff;
      color: #667eea;
      font-weight: 600;
      border: none;
      padding: 0.75rem 2rem;
      transition: all 0.3s;
    }
    .btn-save:hover {
      background-color: #f0f0f0;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .saved-indicator {
      display: none;
      color: #4ade80;
      font-weight: 600;
      margin-top: 1rem;
    }
    .saved-indicator.show {
      display: block;
      animation: fadeIn 0.3s;
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
  </style>
</head>
<body>
  <div class="container-fluid py-4">
    <div class="block-container">
      <h2 class="mb-4">📋 Block 1: Personal Information</h2>
      <div class="mb-3">
        <label for="fullName" class="form-label">Full Name</label>
        <input type="text" class="form-control" id="fullName" placeholder="Enter your full name">
      </div>
      <div class="mb-3">
        <label for="email" class="form-label">Email Address</label>
        <input type="email" class="form-control" id="email" placeholder="Enter your email">
      </div>
      <div class="mb-3">
        <label for="department" class="form-label">Department</label>
        <input type="text" class="form-control" id="department" placeholder="Enter your department">
      </div>
      <button onclick="saveData()" class="btn btn-save">Save Information</button>
      <div id="savedIndicator" class="saved-indicator">✓ Information saved successfully!</div>
    </div>
  </div>

  <script>
    // Load saved data on page load
    window.addEventListener('DOMContentLoaded', function() {
      const savedData = localStorage.getItem('riseBlock1Data');
      if (savedData) {
        const data = JSON.parse(savedData);
        document.getElementById('fullName').value = data.fullName || '';
        document.getElementById('email').value = data.email || '';
        document.getElementById('department').value = data.department || '';
        console.log('Block 1: Loaded saved data from localStorage');
      }
    });

    function saveData() {
      const data = {
        fullName: document.getElementById('fullName').value,
        email: document.getElementById('email').value,
        department: document.getElementById('department').value,
        savedAt: new Date().toISOString()
      };
      
      localStorage.setItem('riseBlock1Data', JSON.stringify(data));
      console.log('Block 1: Data saved to localStorage:', data);
      
      // Show saved indicator
      const indicator = document.getElementById('savedIndicator');
      indicator.classList.add('show');
      setTimeout(() => indicator.classList.remove('show'), 3000);
      
      // Call Rise API if available
      if (typeof lmsAPI !== 'undefined' && lmsAPI.SetReachedEnd) {
        lmsAPI.SetReachedEnd();
        console.log('Block 1: lmsAPI.SetReachedEnd() called');
      }
    }
  </script>
</body>
</html>

Block 2: Professional Goals (Complete Code)

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Block 2: Professional Goals</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <style>
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      padding: 0;
      margin: 0;
    }
    .block-container {
      background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
      color: white;
      padding: 2rem;
      border-radius: 12px;
    }
    .form-control:focus, .form-select:focus {
      border-color: #f093fb;
      box-shadow: 0 0 0 0.2rem rgba(240, 147, 251, 0.25);
    }
    .btn-save {
      background-color: #ffffff;
      color: #f5576c;
      font-weight: 600;
      border: none;
      padding: 0.75rem 2rem;
      transition: all 0.3s;
    }
    .btn-save:hover {
      background-color: #f0f0f0;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .saved-indicator {
      display: none;
      color: #4ade80;
      font-weight: 600;
      margin-top: 1rem;
    }
    .saved-indicator.show {
      display: block;
      animation: fadeIn 0.3s;
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
  </style>
</head>
<body>
  <div class="container-fluid py-4">
    <div class="block-container">
      <h2 class="mb-4">🎯 Block 2: Professional Goals</h2>
      <div class="mb-3">
        <label for="currentRole" class="form-label">Current Role</label>
        <input type="text" class="form-control" id="currentRole" placeholder="Your current position">
      </div>
      <div class="mb-3">
        <label for="careerGoal" class="form-label">Career Goal (1 Year)</label>
        <textarea class="form-control" id="careerGoal" rows="3" placeholder="What do you want to achieve in the next year?"></textarea>
      </div>
      <div class="mb-3">
        <label for="skillToLearn" class="form-label">Top Skill to Develop</label>
        <select class="form-select" id="skillToLearn">
          <option value="">Select a skill...</option>
          <option value="Leadership">Leadership</option>
          <option value="Technical">Technical Skills</option>
          <option value="Communication">Communication</option>
          <option value="Project Management">Project Management</option>
          <option value="Data Analysis">Data Analysis</option>
        </select>
      </div>
      <button onclick="saveData()" class="btn btn-save">Save Goals</button>
      <div id="savedIndicator" class="saved-indicator">✓ Goals saved successfully!</div>
    </div>
  </div>

  <script>
    // Load saved data on page load
    window.addEventListener('DOMContentLoaded', function() {
      const savedData = localStorage.getItem('riseBlock2Data');
      if (savedData) {
        const data = JSON.parse(savedData);
        document.getElementById('currentRole').value = data.currentRole || '';
        document.getElementById('careerGoal').value = data.careerGoal || '';
        document.getElementById('skillToLearn').value = data.skillToLearn || '';
        console.log('Block 2: Loaded saved data from localStorage');
      }
    });

    function saveData() {
      const data = {
        currentRole: document.getElementById('currentRole').value,
        careerGoal: document.getElementById('careerGoal').value,
        skillToLearn: document.getElementById('skillToLearn').value,
        savedAt: new Date().toISOString()
      };
      
      localStorage.setItem('riseBlock2Data', JSON.stringify(data));
      console.log('Block 2: Data saved to localStorage:', data);
      
      // Show saved indicator
      const indicator = document.getElementById('savedIndicator');
      indicator.classList.add('show');
      setTimeout(() => indicator.classList.remove('show'), 3000);
      
      // Call Rise API if available
      if (typeof lmsAPI !== 'undefined' && lmsAPI.SetReachedEnd) {
        lmsAPI.SetReachedEnd();
        console.log('Block 2: lmsAPI.SetReachedEnd() called');
      }
    }
  </script>
</body>
</html>

Block 3: Learning Preferences (Complete Code)

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Block 3: Learning Preferences</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <style>
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      padding: 0;
      margin: 0;
    }
    .block-container {
      background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
      color: white;
      padding: 2rem;
      border-radius: 12px;
    }
    .form-check-input:checked {
      background-color: #00f2fe;
      border-color: #00f2fe;
    }
    .form-control:focus, .form-select:focus {
      border-color: #4facfe;
      box-shadow: 0 0 0 0.2rem rgba(79, 172, 254, 0.25);
    }
    .btn-save {
      background-color: #ffffff;
      color: #4facfe;
      font-weight: 600;
      border: none;
      padding: 0.75rem 2rem;
      transition: all 0.3s;
    }
    .btn-save:hover {
      background-color: #f0f0f0;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .saved-indicator {
      display: none;
      color: #4ade80;
      font-weight: 600;
      margin-top: 1rem;
    }
    .saved-indicator.show {
      display: block;
      animation: fadeIn 0.3s;
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    .form-check-label {
      margin-left: 0.5rem;
    }
  </style>
</head>
<body>
  <div class="container-fluid py-4">
    <div class="block-container">
      <h2 class="mb-4">📚 Block 3: Learning Preferences</h2>
      <div class="mb-3">
        <label class="form-label d-block mb-3">Preferred Learning Style</label>
        <div class="form-check mb-2">
          <input class="form-check-input" type="radio" name="learningStyle" id="visual" value="Visual">
          <label class="form-check-label" for="visual">Visual (videos, diagrams, infographics)</label>
        </div>
        <div class="form-check mb-2">
          <input class="form-check-input" type="radio" name="learningStyle" id="auditory" value="Auditory">
          <label class="form-check-label" for="auditory">Auditory (podcasts, discussions)</label>
        </div>
        <div class="form-check mb-2">
          <input class="form-check-input" type="radio" name="learningStyle" id="reading" value="Reading">
          <label class="form-check-label" for="reading">Reading/Writing (articles, notes)</label>
        </div>
        <div class="form-check">
          <input class="form-check-input" type="radio" name="learningStyle" id="kinesthetic" value="Kinesthetic">
          <label class="form-check-label" for="kinesthetic">Kinesthetic (hands-on, practice)</label>
        </div>
      </div>
      <div class="mb-3">
        <label for="studyTime" class="form-label">Preferred Study Time</label>
        <select class="form-select" id="studyTime">
          <option value="">Select time...</option>
          <option value="Morning">Morning (6am-12pm)</option>
          <option value="Afternoon">Afternoon (12pm-6pm)</option>
          <option value="Evening">Evening (6pm-12am)</option>
          <option value="Night">Night (12am-6am)</option>
        </select>
      </div>
      <div class="mb-3">
        <label for="weeklyHours" class="form-label">Hours per Week Available for Learning</label>
        <input type="number" class="form-control" id="weeklyHours" placeholder="Enter hours" min="1" max="40">
      </div>
      <button onclick="saveData()" class="btn btn-save">Save Preferences</button>
      <div id="savedIndicator" class="saved-indicator">✓ Preferences saved successfully!</div>
    </div>
  </div>

  <script>
    // Load saved data on page load
    window.addEventListener('DOMContentLoaded', function() {
      const savedData = localStorage.getItem('riseBlock3Data');
      if (savedData) {
        const data = JSON.parse(savedData);
        
        if (data.learningStyle) {
          const radio = document.querySelector(`input[name="learningStyle"][value="${data.learningStyle}"]`);
          if (radio) radio.checked = true;
        }
        
        document.getElementById('studyTime').value = data.studyTime || '';
        document.getElementById('weeklyHours').value = data.weeklyHours || '';
        console.log('Block 3: Loaded saved data from localStorage');
      }
    });

    function saveData() {
      const learningStyle = document.querySelector('input[name="learningStyle"]:checked');
      
      const data = {
        learningStyle: learningStyle ? learningStyle.value : '',
        studyTime: document.getElementById('studyTime').value,
        weeklyHours: document.getElementById('weeklyHours').value,
        savedAt: new Date().toISOString()
      };
      
      localStorage.setItem('riseBlock3Data', JSON.stringify(data));
      console.log('Block 3: Data saved to localStorage:', data);
      
      // Show saved indicator
      const indicator = document.getElementById('savedIndicator');
      indicator.classList.add('show');
      setTimeout(() => indicator.classList.remove('show'), 3000);
      
      // Call Rise API if available
      if (typeof lmsAPI !== 'undefined' && lmsAPI.SetReachedEnd) {
        lmsAPI.SetReachedEnd();
        console.log('Block 3: lmsAPI.SetReachedEnd() called');
      }
    }
  </script>
</body>
</html>

Block 4: Summary Dashboard (Complete Code)

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Block 4: Summary Dashboard</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <style>
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      padding: 0;
      margin: 0;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    .dashboard-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem;
    }
    .dashboard-header {
      background: white;
      border-radius: 12px;
      padding: 2rem;
      margin-bottom: 2rem;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    .dashboard-header h1 {
      color: #667eea;
      margin-bottom: 0.5rem;
    }
    .summary-card {
      background: white;
      border-radius: 12px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .summary-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    .card-header {
      display: flex;
      align-items: center;
      margin-bottom: 1rem;
      padding-bottom: 1rem;
      border-bottom: 2px solid #f0f0f0;
    }
    .card-icon {
      font-size: 2rem;
      margin-right: 1rem;
    }
    .card-title {
      font-size: 1.25rem;
      font-weight: 600;
      color: #333;
      margin: 0;
    }
    .data-row {
      display: flex;
      justify-content: space-between;
      padding: 0.5rem 0;
      border-bottom: 1px solid #f5f5f5;
    }
    .data-row:last-child {
      border-bottom: none;
    }
    .data-label {
      color: #666;
      font-weight: 500;
    }
    .data-value {
      color: #333;
      font-weight: 600;
    }
    .empty-state {
      text-align: center;
      padding: 2rem;
      color: #999;
      font-style: italic;
    }
    .refresh-btn {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      border: none;
      padding: 0.75rem 2rem;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .refresh-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
    .timestamp {
      color: #999;
      font-size: 0.9rem;
      margin-top: 0.5rem;
    }
    .badge {
      display: inline-block;
      padding: 0.25rem 0.75rem;
      border-radius: 12px;
      font-size: 0.85rem;
      font-weight: 600;
    }
    .badge-success {
      background-color: #d1fae5;
      color: #065f46;
    }
    .badge-warning {
      background-color: #fef3c7;
      color: #92400e;
    }
  </style>
</head>
<body>
  <div class="container-fluid py-4">
    <div class="dashboard-container">
      <div class="dashboard-header">
        <h1>📊 Your Learning Profile Summary</h1>
        <p class="text-muted mb-3">All your information collected from previous blocks</p>
        <button onclick="loadAllData()" class="refresh-btn">🔄 Refresh Data</button>
      </div>

      <!-- Block 1 Summary -->
      <div class="summary-card">
        <div class="card-header">
          <div class="card-icon">📋</div>
          <h3 class="card-title">Personal Information</h3>
        </div>
        <div id="block1Content" class="card-content">
          <div class="empty-state">No data available</div>
        </div>
      </div>

      <!-- Block 2 Summary -->
      <div class="summary-card">
        <div class="card-header">
          <div class="card-icon">🎯</div>
          <h3 class="card-title">Professional Goals</h3>
        </div>
        <div id="block2Content" class="card-content">
          <div class="empty-state">No data available</div>
        </div>
      </div>

      <!-- Block 3 Summary -->
      <div class="summary-card">
        <div class="card-header">
          <div class="card-icon">📚</div>
          <h3 class="card-title">Learning Preferences</h3>
        </div>
        <div id="block3Content" class="card-content">
          <div class="empty-state">No data available</div>
        </div>
      </div>
    </div>
  </div>

  <script>
    function formatTimestamp(isoString) {
      if (!isoString) return 'Not saved yet';
      const date = new Date(isoString);
      return date.toLocaleString();
    }

    function createDataRow(label, value) {
      if (!value) return '';
      return `
        <div class="data-row">
          <span class="data-label">${label}:</span>
          <span class="data-value">${value}</span>
        </div>
      `;
    }

    function loadBlock1() {
      const data = localStorage.getItem('riseBlock1Data');
      const container = document.getElementById('block1Content');
      
      if (data) {
        const parsed = JSON.parse(data);
        const completionBadge = (parsed.fullName && parsed.email && parsed.department) 
          ? '<span class="badge badge-success">✓ Complete</span>'
          : '<span class="badge badge-warning">⚠ Incomplete</span>';
        
        container.innerHTML = `
          ${completionBadge}
          ${createDataRow('Full Name', parsed.fullName)}
          ${createDataRow('Email', parsed.email)}
          ${createDataRow('Department', parsed.department)}
          <div class="timestamp">Last updated: ${formatTimestamp(parsed.savedAt)}</div>
        `;
        console.log('Summary: Loaded Block 1 data:', parsed);
      } else {
        container.innerHTML = '<div class="empty-state">No data saved yet</div>';
        console.log('Summary: No Block 1 data found');
      }
    }

    function loadBlock2() {
      const data = localStorage.getItem('riseBlock2Data');
      const container = document.getElementById('block2Content');
      
      if (data) {
        const parsed = JSON.parse(data);
        const completionBadge = (parsed.currentRole && parsed.careerGoal && parsed.skillToLearn) 
          ? '<span class="badge badge-success">✓ Complete</span>'
          : '<span class="badge badge-warning">⚠ Incomplete</span>';
        
        container.innerHTML = `
          ${completionBadge}
          ${createDataRow('Current Role', parsed.currentRole)}
          ${createDataRow('Career Goal', parsed.careerGoal)}
          ${createDataRow('Skill to Develop', parsed.skillToLearn)}
          <div class="timestamp">Last updated: ${formatTimestamp(parsed.savedAt)}</div>
        `;
        console.log('Summary: Loaded Block 2 data:', parsed);
      } else {
        container.innerHTML = '<div class="empty-state">No data saved yet</div>';
        console.log('Summary: No Block 2 data found');
      }
    }

    function loadBlock3() {
      const data = localStorage.getItem('riseBlock3Data');
      const container = document.getElementById('block3Content');
      
      if (data) {
        const parsed = JSON.parse(data);
        const completionBadge = (parsed.learningStyle && parsed.studyTime && parsed.weeklyHours) 
          ? '<span class="badge badge-success">✓ Complete</span>'
          : '<span class="badge badge-warning">⚠ Incomplete</span>';
        
        container.innerHTML = `
          ${completionBadge}
          ${createDataRow('Learning Style', parsed.learningStyle)}
          ${createDataRow('Preferred Study Time', parsed.studyTime)}
          ${createDataRow('Weekly Hours', parsed.weeklyHours ? `${parsed.weeklyHours} hours` : '')}
          <div class="timestamp">Last updated: ${formatTimestamp(parsed.savedAt)}</div>
        `;
        console.log('Summary: Loaded Block 3 data:', parsed);
      } else {
        container.innerHTML = '<div class="empty-state">No data saved yet</div>';
        console.log('Summary: No Block 3 data found');
      }
    }

    function loadAllData() {
      console.log('Summary: Loading all data from localStorage...');
      loadBlock1();
      loadBlock2();
      loadBlock3();
      
      // Check if all blocks have data
      const block1 = localStorage.getItem('riseBlock1Data');
      const block2 = localStorage.getItem('riseBlock2Data');
      const block3 = localStorage.getItem('riseBlock3Data');
      
      if (block1 && block2 && block3) {
        console.log('Summary: All data loaded successfully');
        
        // Call Rise API if available
        if (typeof lmsAPI !== 'undefined' && lmsAPI.SetReachedEnd) {
          lmsAPI.SetReachedEnd();
          console.log('Summary: lmsAPI.SetReachedEnd() called - all data reviewed!');
        }
      } else {
        console.log('Summary: Some data is missing - please complete previous blocks');
      }
    }

    // Auto-load data when page loads
    window.addEventListener('DOMContentLoaded', function() {
      console.log('Summary: Dashboard loaded, fetching data...');
      loadAllData();
    });

    // Listen for localStorage changes from other blocks
    window.addEventListener('storage', function(e) {
      console.log('Summary: Storage event detected:', e.key);
      if (e.key === 'riseBlock1Data' || e.key === 'riseBlock2Data' || e.key === 'riseBlock3Data') {
        console.log('Summary: Data updated in another block, refreshing...');
        loadAllData();
      }
    });

    // Poll for changes every 2 seconds (fallback for same-page updates)
    let lastCheck = {
      block1: localStorage.getItem('riseBlock1Data'),
      block2: localStorage.getItem('riseBlock2Data'),
      block3: localStorage.getItem('riseBlock3Data')
    };

    setInterval(function() {
      const current = {
        block1: localStorage.getItem('riseBlock1Data'),
        block2: localStorage.getItem('riseBlock2Data'),
        block3: localStorage.getItem('riseBlock3Data')
      };

      if (current.block1 !== lastCheck.block1 || 
          current.block2 !== lastCheck.block2 || 
          current.block3 !== lastCheck.block3) {
        console.log('Summary: Data change detected via polling, refreshing...');
        loadAllData();
        lastCheck = current;
      }
    }, 2000);
  </script>
</body>
</html>

Adding Blocks to Rise 360

Follow these steps to add each HTML file to your Rise 360 course.

Open your Rise 360 course and navigate to the lesson where you want the first questionnaire block. Click the plus icon to add a new block, then scroll down to find the Multimedia block type. Select the code embed option, which opens a text area for custom HTML.

Paste the complete Block 1 code into the embed area and click Save. The block will appear with a preview showing the gradient background and form fields. Repeat this process for Blocks 2, 3, and 4 in their respective lessons.

For proper height display, set the multimedia block height to at least 400 pixels for the input blocks and 800 pixels for the summary dashboard. You can adjust these values in the block settings if forms appear cut off.

Important Considerations for localStorage in Rise 360

Several factors affect localStorage behavior that you should understand before deploying this solution.

Browser-specific storage means data saved on Chrome won't appear in Firefox or Safari. If learners switch browsers or devices, they start fresh. Consider adding a note in your course explaining this limitation.

LMS preview modes may use different origins, causing localStorage to behave differently than in the published course. Always test with a fully published version on your actual LMS or hosting platform.

Private browsing windows typically clear localStorage when closed. Learners using incognito mode will lose their data between sessions.

Storage limits vary by browser but generally allow 5-10 MB per origin. A questionnaire like this uses only a few kilobytes, so limits won't be an issue for typical use cases.

Extending the Questionnaire System

This foundation opens possibilities for more sophisticated implementations. You might add validation to require certain fields before saving. You could implement a progress indicator showing which blocks are complete. The summary dashboard could generate a downloadable PDF of learner responses.

For team environments, you could extend the system to post data to a webhook when learners complete the questionnaire. This allows integration with systems like Google Sheets, Zapier, or your organization's database.

The localStorage pattern also works for branching scenarios, where learner choices in one block affect what content appears in later blocks. Store the selection, then check that value to conditionally display content.

Wrapping Up

Building a multi-block questionnaire in Articulate Rise 360 using localStorage gives you data persistence that native Rise blocks can't provide. The technique requires no backend infrastructure, works across all hosting environments, and provides immediate feedback to learners.

The key concepts to remember are using unique localStorage keys for each block, converting objects to JSON strings for storage, and checking for existing data on page load. The summary dashboard demonstrates how multiple blocks can share data to create cohesive learning experiences.

Download the complete code files, customize the styling to match your brand, and start building connected experiences in Rise 360. If you have questions or want to share what you've built, drop a comment below.

Nathan Stoker

I build custom eLearning in Storyline, Rise and JavaScript, and I make the free tools and templates on this site. Need an interaction like this in your course? Let's talk.

Work with me · Browse templates

Related posts