Hello,
I'm looking to repeat my headers at various intervals within my long Matrix Table. I have seen a Javascript code circling around - but unsure of how to use it, and was hoping to get some help!
For example after question 3, 7, 10, etc. based on how the questions are "grouped" together.
Repeat Headers in Matrix Table
Best answer by ahmedA
Its possible via JS, see if this works for you:
Qualtrics.SurveyEngine.addOnReady(function()
{
choice_table = this.getChoiceContainer();
//Numbering starts from 0. So the header is the 0th row, the first statement row 1 etc.
//This will create an empty row above statement 4. YOu can change it accordingly.
new_row = choice_table.insertRow(4);
//rows[0] refersto the header.
// So this takes the header row fills up the empty row just created.
new_row.innerHTML = choice_table.rows[0].innerHTML;
});
The code given above, works based on position. So, if you are randomizing you're statements, you will have to figure out where you need to insert your new row. Also, each group is a row, so take that also into account.
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
