https://www.qualtrics.com/community/discussion/comment/34895#Comment_34895ahmedA very helpful!!! I am now occasionally getting too many decimals now? Is there a way to make sure it's exactly 1 decimal?Here's the code i'm using:Qualtrics.SurveyEngine.addOnload(function(){ document.getElementById("QR~QID112~2").disabled = true; document.getElementById("QR~QID112~3").disabled = true; document.getElementById("QR~QID112~4").disabled = true; var val="${q://QID111/ChoiceNumericEntryValue/1}"; document.getElementById("QR~QID112~2").value = val; setInterval(function(){ var val_1=Number(Number(document.getElementById("QR~QID112~1").value).toFixed(1)); var val_2=Number(Number(document.getElementById("QR~QID112~2").value).toFixed(1)); var val_3=val_2-val_1; var val_4=val_1+val_2; document.getElementById("QR~QID112~3").value=val_3; document.getElementById("QR~QID112~4").value=val_4; }, 100);});Qualtrics.SurveyEngine.addOnReady(function(){ /*Place your JavaScript here to run when the page
https://www.qualtrics.com/community/discussion/comment/34808#Comment_34808ahmedA Nope, but it turns out this does actually seem to be working when I preview the whole survey -- it just doesn't show up when I choose "view block" for that block alone. Follow-up question: what's the best way to capture which image is shown to a particular respondent? i.e. which loop they got to see? Looks like Qualtrics does not record this automatically, but I'll need to know which image each respondent saw.
https://www.qualtrics.com/community/discussion/comment/34805#Comment_34805ahmedAThis is exactly what I did most recently! But I just see blank space instead of an image when I preview the survey.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.