Is there a way to "Position text above" when using the Profile format for a Matrix table? | XM Community
Skip to main content

Is there a way to "Position text above" when using the Profile format for a Matrix table?

  • November 29, 2022
  • 8 replies
  • 286 views

Forum|alt.badge.img

"Position text above" seems to be only available when using Standard likert, but not Profile.

8 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • November 29, 2022

It can be done with JavaScript. See matrixProfileTextAbove.


Forum|alt.badge.img
  • Author
  • 3 replies
  • November 30, 2022

Thank you. I'm glad to see that it's possible, but does anyone else have free code they're willing to share?


Forum|alt.badge.img
  • Author
  • 3 replies
  • November 30, 2022

A few years ago I was able to manage to somehow trick Qualtrics into doing this without using JavaScript. I just can't recall how I did it.

image.png


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • 1555 replies
  • November 30, 2022

fuhred
Not sure, If you have used this option of Position Text above.
image.pngHope it helps!


Forum|alt.badge.img
  • Author
  • 3 replies
  • November 30, 2022

Thank you, but those options are only available for Likert and not Profile. On a separate note... why???


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • 1555 replies
  • November 30, 2022

https://community.qualtrics.com/XMcommunity/discussion/comment/52686#Comment_52686fuhred I believe you can include the below code for moving the text up in profile matrix type question.
Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/

var n= jQuery('#'+this.questionId).find('.c1').length;
for(let i=0; i jQuery('#'+this.questionId).find('.c1').eq(i).insertBefore(jQuery('#'+this.questionId).find('.ChoiceRow').eq(i));

}

});
Hope it helps!


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • December 3, 2022

https://community.qualtrics.com/XMcommunity/discussion/comment/52691#Comment_52691That JS doesn't quite work properly. Ignoring that the moved tables cells aren't in table rows:

  • The statements don't span columns so long statements mess up the formatting

  • The mobile accordion doesn't collapse properly


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • 1555 replies
  • December 4, 2022

https://community.qualtrics.com/XMcommunity/discussion/comment/52825#Comment_52825Thank you for highlighting the error.
I did it on the default question text. Hence, might have missed the span issue.
Will try to update it if possible. Meanwhile, do you mind suggesting the correct CSS approach here?