diff --git a/JavaScript Files/Add header row to a matrix table.js b/JavaScript Files/Add header row to a matrix table.js new file mode 100644 index 0000000..c6b5135 --- /dev/null +++ b/JavaScript Files/Add header row to a matrix table.js @@ -0,0 +1,12 @@ +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; + +}); \ No newline at end of file diff --git a/JavaScript Files/Deselect Choices.js b/JavaScript Files/Deselect Choices.js index 326d604..86a950e 100644 --- a/JavaScript Files/Deselect Choices.js +++ b/JavaScript Files/Deselect Choices.js @@ -1,10 +1,14 @@ // This is JS to allow participants to deselect their choices on the single answer type questions // Courtesy mattyb513 Ref: https://www.qualtrics.com/community/discussion/1387/deselecting-a-radio-button -// You'll need to first create a Deselct Button. +// You'll need to first create a Deselect Button. -// Add this to your Question Text +// This for a single question. For Matrix type, find below + +// Add this to your Question Text. For styling. you can skip this if you want +// If you just want a normal button with text, add some text at this location +//