Placing a $ sign in front of a text box | XM Community

Placing a $ sign in front of a text box

  • 23 July 2020
  • 4 replies
  • 501 views

Hello,
I've seen some discussion regarding placing a dollar sign to display infront of a text box but for me the $ sign appears on the line above the text box, not before it.
Can anyone help with this?
Thank you.
Ash.


4 replies

Userlevel 7
Badge +30

Hi ashio,
Is this happening in a single text field, Matrix table, or something else? Can you share the Javascript you used?

Hello,
It's in a single text field. I used:
Qualtrics.SurveyEngine.addOnload(function()
{ jQuery("#"+this.questionId+" .InputText").before("$");
});

Userlevel 7
Badge +22

Use the below code:
jQuery("#"+this.questionId+" .InputText").css("width","96%").before("$");

Thank you for the response but that still puts the $ sign on the row above the text box (see attached).
Screen Shot 2020-07-23 at 9.52.00 AM.png

Leave a Reply