Adding diff. Symbols after/before each text boxes | XM Community
Skip to main content

Adding diff. Symbols after/before each text boxes


Forum|alt.badge.img+2

Hi, Is there a way to add another symbol without affecting/changing the other text boxes within a question? I want to put a Percentage Symbol after the 1st text box, without affecting the 2nd box equipped with dollar sign.
I used the code I found from the other post.
jQuery("#"+this.questionId+" .InputText").css("width","96%").before("$ ");

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5932 replies
  • October 3, 2022

Change the selector. For example:
jQuery("#"+this.questionId+" .SBS3 .InputText").css("width","96%").after("%");
jQuery("#"+this.questionId+" .SBS4 .InputText").css("width","96%").before("$ ");


SuhasM
Qualtrics Employee
Forum|alt.badge.img+16
  • Qualtrics Employee
  • 114 replies
  • October 3, 2022

TomG Thank you for your expertise and sharing this custom code solution! And, thank you robi_kalinisan for confirming that the solution works 🙂


Leave a Reply