Add static text after multiple choice text box | XM Community
Question

Add static text after multiple choice text box

  • 13 August 2023
  • 3 replies
  • 96 views

Userlevel 1
Badge +1

 

May I know how to add a static text after the text box show in the screenshot? I would like to put “minutes” there.

Thanks guys


3 replies

Userlevel 6
Badge +18

Hi @JZhang,

You can refer to the link below for guide:-
 


You can also try changing the word to ‘before’ instead of ‘after’ in the code provided.

Hope this helps.

Userlevel 6
Badge +23

Depending on your needs, I’d just test how the above looks on mobile.  In past I have found editing the text box location may not layout as anticipated in the mobile view.  If needed a slider question might also be another question type which would be good for this.

Userlevel 5
Badge +8

just use below code.

HTML in question label and not directly into text

<span class=’minutes’>minutes</span>

JS code in onReady

jQuery(‘.minutes’).insertAfter(jQuery(‘input[type=”text”]’))

Leave a Reply