Error: Question has not been saved | XM Community
Solved

Error: Question has not been saved

  • 27 February 2019
  • 1 reply
  • 24 views

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!
icon

Best answer by JenCX 4 March 2019, 17:46

View original

1 reply

Userlevel 7
Badge +11
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