How to insert "$" and "%" signs behind response boxes in matrix tables | XM Community
Skip to main content
Solved

How to insert "$" and "%" signs behind response boxes in matrix tables

  • July 8, 2020
  • 3 replies
  • 17 views

Hi! I'm trying to insert "$" and "%" signs behind responses boxes in matrix tables to make the metrics more clear for survey takers. I've heard this might require Javascript. Does anyone know how to execute on this, or have any other ways in mind to accomplish this? Thanks!

Best answer by rondev

In onReady function as shown below:
image.png

3 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • July 8, 2020

Use the below code:
jQuery("#"+this.questionId+" input[type='text']").attr("placeholder","$");


Thanks! Can you share where I would enter this in the Javascript sequence that's already there? For example:
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
});
Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/
});
Qualtrics.SurveyEngine.addOnUnload(function()
{
/*Place your JavaScript here to run when the page is unloaded*/
});


rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • July 8, 2020

In onReady function as shown below:
image.png