Hi there,This is a follow-up question on a previous question I had posted about here. In short, I use JavaScript to randomly sample a set of numbers, then assign that set to an embedded data variable. Then, I use that set of numbers as an indicator in a Loop&Merge block, to either hide or show a certain question in the Loop, according to the loop iteration. This setup works well, but unfortunately, when I review the exported data, I see that the embedded data variable that holds the set simply doesn't get exported correctly. Instead of a set of 20 numbers, I see only one number in the exported data. This is particularly strange because not only does the loop&merge mechanism follow the set of numbers *retrieved from* the embedded data, but also because when I do a "sanity check" and pipe the embedded data variable into a survey question, I can see the set of numbers in its entirety. Does someone have an idea why a set of numbers (though defined as a string of characters, but it shouldn'
Hi there,I have a Loop & Merge block in which I want a certain question to be displayed in only some loop iterations but not always. To this end, I'm trying to build upon this question and answer. However, I need to match ${lm://CurrentLoopNumber} to several loop iteration numbers, so that if ${lm://CurrentLoopNumber} equals either (for example) 2 or 4 or 10 , then a question will be hidden in the 2nd, 4th, and 10th loop iterations. To do this, I found this nice solution, which allowed me to write the following code:{ /*Place your JavaScript here to run when the page loads*/ var foo = "${lm://CurrentLoopNumber}"; var L = function(){ var obj = {}; for(var i=0; i
Hello there,I want to save up vertical space by minimizing unnecessary padding in three elements on the page. Using my browser's Inspector Mode, I was able to figure out which items are relevant for my purpose. However, I can't adjust them as needed. div.Inner.BorderColor.TB has padding of 10px which I'd like to change to 0pxdiv.Inner.BorderColor.SAHR has padding of 10px which I'd like to change to 0pxdiv.QuestionText.BorderColor has Margin of 15px which I'd like to change to 0pxSince I need to change to take place only on several pages but not in the entire survey, I'm looking for a question-based solution, which will probably rely on JavaScript using jQuery . I've tried, for example: jQuery("#"+this.questionId+" div.Inner.BorderColor.TB").css({"padding": "0px"});and also without the "div ": jQuery("#"+this.questionId+" Inner.BorderColor.TB").css({"padding": "0px"});Unfortunately, neither of those worked out.Any idea?
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.