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

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

  • May 15, 2020
  • 4 replies
  • 825 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?

Best answer by rondev

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");

4 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • May 15, 2020

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");


Forum|alt.badge.img+1
  • September 1, 2020

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, ...


rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • September 1, 2020

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");


  • May 28, 2021

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