Is there a way to increase the size of a matrix table text box entry beyond options given | XM Community
Solved

Is there a way to increase the size of a matrix table text box entry beyond options given

  • 15 May 2020
  • 4 replies
  • 435 views

Is there a way using javascript that can increase the text box size in a matrix table beyond the small, medium and large options that are available?

icon

Best answer by rondev 15 May 2020, 13:49

View original

4 replies

Userlevel 7
Badge +22

Paste the below code in the matrix JS onReady function and adjust width value as required.
 jQuery("#"+this.questionId+" input[type='text']").css("width","12em");

Badge +1

rondev , could you pleas tell me how to assign different width to each column?
For example, the text entry of the first column width = 12, that of the second column width = 5, ...

Userlevel 7
Badge +22

https://www.qualtrics.com/community/discussion/comment/29833#Comment_29833line with c4 is first column, c5 second and so on:
jQuery("#"+this.questionId+" .c4 input[type='text']").css("width","12em");
jQuery("#"+this.questionId+" .c5 input[type='text']").css("width","6em");
jQuery("#"+this.questionId+" .c6 input[type='text']").css("width","3em");

can you clarify where to add the custom text w/in the survey platform?

Leave a Reply