Useful Code Snippets | XM Community

Useful Code Snippets

  • 6 March 2018
  • 3 replies
  • 39 views

Userlevel 4
Badge +3
I have been running into similar situations with a few of my customers and wanted to share some of my custom code solutions, with the hopes that others can share theirs as well!

3 replies

Userlevel 4
Badge +3
For Custom Dashboards, I've been using Chart.js. I've gotten fairly familiar with the API, so if you have questions please let me know! I've used them in custom End of Survey Messages, but also as mid-survey feedback. (http://www.chartjs.org/)
Userlevel 4
Badge +3
Also, I haven't found too much documentation on the Embedded Data API, so I went a long time before finding this out, but you can get and set Embedded Fields with the following code:

`Qualtrics.SurveyEngine.setEmbeddedData('FIELD', value);`
`Qualtrics.SurveyEngine.getEmbeddedData('FIELD');`
Userlevel 7
Badge +27
We've made a few code snippets publicly available at:
https://gist.github.com/marketinview

Leave a Reply