Incorporating script into qualtrics (loop and merge) | XM Community
Question

Incorporating script into qualtrics (loop and merge)

  • 20 July 2019
  • 2 replies
  • 20 views

Hi,

I am trying to incorporate a custom build code to my qualtrics survey (https://docs.mathjax.org/en/latest/start.html) so that I can type display math elements nicely.

I put it in the header of look and feel as well head of html in the questions. It works for the first loop of loop and merge but it doesn't work for the rest. The code also works if I refresh the page when I am taking the survey. Any suggestions would be appreciated.

Thank you very much.

2 replies

Userlevel 7
Badge +27
Please post your code.
Thank you, Tom.

Here is what my survey looks like: http://mylmu.co1.qualtrics.com/jfe/form/SV_d753kppZQeXGLoF

In terms of the code:
I put < script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML' async></script> into the header section look and feel.

And I also put the same in my question:
< html><head>
< script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML' async></script>
< /head>
${lm://Field/1}
< /html>

This is all I have.

Thank you.

Leave a Reply