Add static text after multiple choice text box | XM Community
Skip to main content
Question

Add static text after multiple choice text box


Forum|alt.badge.img+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

SaurabhPujare_Ugam
QPN Level 5 ●●●●●
Forum|alt.badge.img+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.


Forum|alt.badge.img+31
  • Level 6 ●●●●●●
  • 240 replies
  • August 15, 2023

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.


rgupta15
Level 4 ●●●●
Forum|alt.badge.img+8
  • Level 4 ●●●●
  • 92 replies
  • August 15, 2023

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