Is there a way to increase the size of a matrix table text box entry beyond options given | Experience 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 10:27 AM UTC
  • 4 replies
  • 899 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");

View original

4 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • May 15, 2020 11:49 AM UTC

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
  • Sep 1, 2020 8:04 PM UTC

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 ●●●●●●
  • Sep 1, 2020 8:10 PM UTC

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 5:48 PM UTC

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