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

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


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!

icon

Best answer by rondev 8 July 2020, 22:43

View original

3 replies

Userlevel 7
Badge +22

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*/
});

Userlevel 7
Badge +22

In onReady function as shown below:
image.png

Leave a Reply