Hi there,
I'm trying to import a question from another survey. The question loads, edits, etc. perfectly fine in the original survey, but whenever I try to import and edit in the second survey, I get an error that says "Question has not been saved. JavaScript is not allowed."
!
Why is this happening?
The original question is just a line of Text. The HTML is
```
<p>Your survey will automatically load in <strong><span id="countdowntimer">10 </span> seconds</strong>. Thank you for your patience.</p>
<script type="text/javascript">
var timeleft = 10;
var downloadTimer = setInterval(function(){
timeleft--;
document.getElementById("countdowntimer").textContent = timeleft;
if(timeleft <= 0)
clearInterval(downloadTimer);
},1000);
</script>
```
And in the addOnPage JavaScript, there's also:
```
this.hideNextButton();
this.clickNextButton.delay(11);
```
Thanks so much!
Page 1 / 1
While this does fall under the umbrella of custom code, I'd still recommend reaching out to support. They won't be able to help you with the code but they should be able to help you figure out why the question won't import/save.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.