Javascript no longer allowed in HTML editor? Workaround?? | Experience Community
Skip to main content
Question

Javascript no longer allowed in HTML editor? Workaround??

  • Nov 11, 2019 9:07 PM UTC
  • 10 replies
  • 356 views

Recently Qualtrics apparently pushed a change such that questions will not save if Javascript is entered in the HTML Editor. Background: for three weeks in October, we worked on implementing Javascript code within the HTML editor to embed a video recorder into the survey. We tried the same code within the Javascript editor, but the video recorder did not work when doing that (whereas it DOES work when entering Javascript into the HTML editor). So, we had been editing our Javascript code in the HTML editor. This new change that Qualtrics has pushed prevents questions from saving when Javascript is entered in the HTML editor... this has invalidated our work, as we can no longer create new questions or edit existing ones using Javascript in the HTML editor. My question: Is there a workaround for this? Or a way to give users permission to save Javascript within the HTML editor? Or could this change be rolled back, since not all Javascript works when entered in the Javascript editor?

10 replies

  • Nov 13, 2019 6:23 PM UTC
We're having the same problem with some of our code. We have used Javascript in the HTML editor for pop-up text and print buttons, and adding this code to the Javascript editor isn't working at all. I'd really like to see Qualtrics roll this back, since we've lost some functionality that we've used for years with this change.

LaurenK
Former XM Community Team Member
Forum|alt.badge.img+13
  • Former XM Community Team Member
  • Nov 13, 2019 9:19 PM UTC
Hi team - if you are experiencing this, please reach out to the Qualtrics Support team so they may properly file this with the engineering team!

  • Author
  • Nov 13, 2019 9:38 PM UTC
thanks LaurenK... I've contacted support both via phone and email who basically told me this isn't likely be to changed soon and to come here to find a workaround. If you could help pass along to engineering team, that would be greatly appreciated

  • Nov 14, 2019 3:53 PM UTC
Your best bet is probably to ask for help specific to a piece of code that isn't working when applied in the current way Qualtrics supports, IMHO.

NiC
QPN Level 5 ●●●●●
Forum|alt.badge.img+28
  • QPN Level 5 ●●●●●
  • Nov 14, 2019 6:22 PM UTC
Hi @LHickman You can add JS code in Header of the page. Also You can target specific question with JS code option in each question. Also you won't be able to copy the code as is from questions (Most of the time), it will require some tweaking to make it work here.

  • Nov 22, 2019 2:51 AM UTC
I've also run into an issue with this. Most of our third party providers have html snippets for embedding their services, now we can't use them in questions.

  • Nov 22, 2019 3:15 AM UTC
@LHickman @JEK have messaged you the workaround I've found for this.

MsIreen
Level 5 ●●●●●
Forum|alt.badge.img+23
  • Level 5 ●●●●●
  • Nov 22, 2019 9:52 AM UTC
Oh, this is not good... We were planning to start some development for this. @Rohan_I can you PM this to me as well?

Quin
Forum|alt.badge.img+3
  • Dec 16, 2019 5:14 PM UTC
There was a recent fix. I was having trouble with my html code for a print button and it works now. Maybe try now?

npetrov937
Level 2 ●●
Forum|alt.badge.img+4
  • Level 2 ●●
  • Dec 17, 2019 11:36 AM UTC
Hi all, I am just commenting to here to track any progress - can anyone else confirm that it is working now? Thanks, Nikolay