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

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!

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


In onReady function as shown below:
image.png


Leave a Reply