Haha yes, that's a JavaScript thingy (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators) but you might as well use double quotes in this situation. You could use a range operator as you suggested. If you really only want to skip the display on specified iterations, you could useif ([20, 40, 60].includes(parseInt("${lm://CurrentLoopNumber}"))) {...}Beware though that the includes method does/did not exist on Internet Explorer yet, so this will only work in modern browsers (which people should use anyway).
I don't remember exactly to which survey this question related to exactly, as I've created a lot of similar surveys with complex loop structures in the meantime. If I remember correctly, if I didn't want to show a question on a certain iteration, I used this piece of code:Qualtrics.SurveyEngine.addOnload(function(){ /*Place your JavaScript here to run when the page loads*/});Qualtrics.SurveyEngine.addOnReady(function(){ /*Place your JavaScript here to run when the page is fully displayed*/ if (parseInt("${lm://CurrentLoopNumber}") === 1) { jQuery("#"+this.questionId).hide(); this.clickNextButton() }});where the number after the === of course corresponds to the iteration you want to skip. Basically this script simply hides the question from view and clicks the next button, effectively skipping the slide.
@anm54267 To answer your final question: have you looked into the loop & merge options of a block to do the repetitions?
Thanks, I already solved this with a similar solution, without using javascript but some smart usage of embedded data fields.
This is horrible. It's 2019 now and this is still happening. I had a massively complex full factorial design that I finally completed in survey flow. Clicked 'save', got the 'your session timed out' message, and everything is gone. I have to spend a lot of time again getting it to where I left off. Problems like these shouldn't happen with a professional platform like this, or worse, take so long until they are solved.
Already have an account? Login
Enter your username or 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.