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.
Please enter your goal before calculating your score.
'; downloadPdfButton.style.display = 'none'; return; } let totalScore = 0; let allQuestionsAnswered = true; const questionGroups = ['q1', 'q2', 'q3', 'q4', 'q5']; const answers = {}; // Store answers for PDF questionGroups.forEach(groupName => { const selectedOption = document.querySelector(`input[name="${groupName}"]:checked`); if (selectedOption) { const score = parseInt(selectedOption.value); totalScore += score; answers[groupName] = selectedOption.value; // Store the raw score } else { allQuestionsAnswered = false; } }); if (!allQuestionsAnswered) { resultArea.style.display = 'block'; resultArea.innerHTML = 'Please answer all questions to calculate your score.
'; downloadPdfButton.style.display = 'none'; return; } // Determine the intrinsic motivation level based on the total score let motivationLevel = ''; let interpretation = ''; if (totalScore >= 21) { motivationLevel = 'Very High Intrinsic Motivation'; interpretation = 'You likely find deep personal satisfaction, autonomy, and challenge in pursuing this goal. Your motivation is strongly internal and sustainable.'; } else if (totalScore >= 16) { motivationLevel = 'High Intrinsic Motivation'; interpretation = 'You have a strong internal drive for this goal, experiencing significant enjoyment, control, and competence. Continue to leverage these internal rewards.'; } else if (totalScore >= 11) { motivationLevel = 'Moderate Intrinsic Motivation'; interpretation = 'Your motivation for this goal is reasonably internal, but there might be opportunities to enhance your sense of choice, competence, or personal enjoyment to make it even more intrinsically rewarding.'; } else if (totalScore >= 5) { motivationLevel = 'Low Intrinsic Motivation'; interpretation = 'Your intrinsic motivation for this goal may be low. Consider if the goal truly aligns with your interests, values, and if you have sufficient autonomy and opportunities for skill development. Reducing external pressures could also help.'; } // Display results resultArea.style.display = 'block'; resultArea.innerHTML = `Your Intrinsic Motivation Score: ${totalScore}/25
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"); }