> @TomG said: > The code is correct. The demo was changed at some point, but I just updated it so it works again. > Great, thank you!
> @TomG said: > I don't understand your issue. The script shown does all the things in your list. > > The only issue would be if they actually answered 0 to ALL the rows, went to the next page, then went back because it would remove the zeros they entered. If you want to address that specific case you would have to update an embedded variable and use it in the logic to determine if it was the first time they saw the question. > > In case you haven't implemented it correctly, the script should look like this: > ``` > Qualtrics.SurveyEngine.addOnload(function() { > var inputs = jQuery("#"+this.questionId+" .SumInput input"); > if(inputs.filter(function() {return this.value != "0";}).length == 0) { > inputs.val(""); > } > }); > ``` > Demo If I run this script, the prefilled 0 is still displayed. Is there a way to solve this? So in short, I am looking for a script that does not show the prefilled 0 and is able to retain the value of w
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.