Goal Intrinsic Motivation Assessment

This tool helps you assess the intrinsic motivation for a specific goal you are pursuing. Intrinsic motivation comes from within; you engage in an activity because you find it personally satisfying, enjoyable, or meaningful. Answer the questions below honestly, reflecting on your current goal.

Motivation Level: ${motivationLevel}

${interpretation}

(Score breakdown: Questions 1-4 scored 1-5 as given; Question 5 is reverse-scored, so "Strongly Disagree" on pressure adds 5 points, "Strongly Agree" adds 1 point.)

`; downloadPdfButton.style.display = 'block'; // Show PDF button // Store answers and goal for PDF generation resultArea.dataset.goalText = goalText; resultArea.dataset.answers = JSON.stringify(answers); resultArea.dataset.totalScore = totalScore; resultArea.dataset.motivationLevel = motivationLevel; resultArea.dataset.interpretation = interpretation; } /** * Clears all inputs and results. */ function clearInputsAndResults() { const goalInput = document.getElementById('currentGoal'); const resultArea = document.getElementById('resultArea'); const downloadPdfButton = document.getElementById('downloadPdfButton'); if (goalInput) { goalInput.value = ''; } // Clear all radio button selections const radioButtons = document.querySelectorAll('input[type="radio"][name^="q"]'); radioButtons.forEach(radio => { radio.checked = false; }); if (resultArea) { resultArea.style.display = 'none'; resultArea.innerHTML = ''; delete resultArea.dataset.goalText; delete resultArea.dataset.answers; delete resultArea.dataset.totalScore; delete resultArea.dataset.motivationLevel; delete resultArea.dataset.interpretation; } if (downloadPdfButton) { downloadPdfButton.style.display = 'none'; } } /** * Generates a PDF report of the assessment. */ function generatePdf() { if (typeof window.jspdf === 'undefined' || typeof window.jspdf.jsPDF === 'undefined') { console.error('jsPDF library not loaded. Cannot generate PDF.'); const resultArea = document.getElementById('resultArea'); if (resultArea) { resultArea.innerHTML = '

PDF generation failed. Library not loaded.

'; } return; } const { jsPDF } = window.jspdf; const doc = new jsPDF(); const resultArea = document.getElementById('resultArea'); // Retrieve stored data for PDF const goalText = resultArea.dataset.goalText || 'Not provided'; const answers = JSON.parse(resultArea.dataset.answers || '{}'); const totalScore = resultArea.dataset.totalScore || 'N/A'; const motivationLevel = resultArea.dataset.motivationLevel || 'N/A'; const interpretation = resultArea.dataset.interpretation || ''; // Define questions and their labels for PDF const questions = [ "1. I find this goal personally interesting and enjoyable to work towards.", "2. I feel I have chosen this goal freely and have control over how I pursue it.", "3. I feel capable and confident in my ability to achieve this goal, and it offers opportunities to improve my skills.", "4. I believe this goal is important and valuable, and its achievement serves a meaningful purpose for me.", "5. I feel pressure or tension to achieve this goal from external sources (e.g., others' expectations, deadlines for rewards)." ]; const likertLabels = { '1': 'Strongly Disagree', '2': 'Disagree', '3': 'Neutral', '4': 'Agree', '5': 'Strongly Agree' }; let yOffset = 20; // Title doc.setFontSize(24); doc.setTextColor(44, 62, 80); // Dark blue for headings doc.text("Intrinsic Motivation Report", 105, yOffset, { align: 'center' }); yOffset += 20; // Goal doc.setFontSize(14); doc.setTextColor(51, 51, 51); doc.text(`Your Goal: ${goalText}`, 20, yOffset); yOffset += 20; // Answers to Questions doc.setFontSize(12); doc.setTextColor(51, 51, 51); doc.text("Your Responses:", 20, yOffset); yOffset += 10; questions.forEach((qText, index) => { const qNum = `q${index + 1}`; const answerScore = answers[qNum] || 'N/A'; // For Q5, show original label for user clarity, but remember it's reverse-scored const displayAnswer = likertLabels[answerScore]; doc.text(qText, 20, yOffset); yOffset += 7; doc.text(`- Your Answer: ${displayAnswer} (Score: ${answerScore})`, 25, yOffset); yOffset += 15; if (yOffset > 280) { // Check for page break doc.addPage(); yOffset = 20; } }); yOffset += 10; if (yOffset > 280) { // Check for page break before summary doc.addPage(); yOffset = 20; } // Summary Score doc.setFontSize(16); doc.setTextColor(46, 204, 113); // Green for summary doc.text(`Total Intrinsic Motivation Score: ${totalScore}/25`, 20, yOffset); yOffset += 10; doc.text(`Motivation Level: ${motivationLevel}`, 20, yOffset); yOffset += 15; // Interpretation doc.setFontSize(12); doc.setTextColor(51, 51, 51); doc.text("Interpretation:", 20, yOffset); yOffset += 10; const splitInterpretation = doc.splitTextToSize(interpretation, 170); // Max width for text doc.text(splitInterpretation, 20, yOffset); yOffset += (splitInterpretation.length * 7); // Adjust yOffset based on lines of text doc.save("Intrinsic_Motivation_Report.pdf"); }
Scroll to Top