Highlighting unanswered statements in a matrix table after the user has clicked next | XM Community
Skip to main content
Solved

Highlighting unanswered statements in a matrix table after the user has clicked next


Hello everyone,
I have a matrix table question with the 'request response' option selected in my survey.
I need to keep the 'request response' option selected, however I would like to highlight any unanswered statements before the user moves on to the next question just in case any statements have been missed unintentionally.
I was wondering whether there is a way to highlight any unanswered statements in a matrix table but only after the user has clicked next / tried to move on to the next question?
Any help surrounding this would be really appreciated, thanks!

Best answer by TomG

Yes, I have a function that highlights unanswered matrix rows after 'Next' is clicked if you are interested in purchasing. It works with either "Force Response" or "Request Response". It is compatible with all Likert Matrix options: Mobile Friendly, Transposed, and Position Text Above. It automatically detects which options are selected and adjusts accordingly.
Screenshot:
image.png

View original

10 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5940 replies
  • Answer
  • December 3, 2020

Yes, I have a function that highlights unanswered matrix rows after 'Next' is clicked if you are interested in purchasing. It works with either "Force Response" or "Request Response". It is compatible with all Likert Matrix options: Mobile Friendly, Transposed, and Position Text Above. It automatically detects which options are selected and adjusts accordingly.
Screenshot:
image.png


  • 2 replies
  • November 1, 2021

https://community.qualtrics.com/XMcommunity/discussion/comment/32225#Comment_32225Hi TomG, I was wondering if I could request your help with implementing your code on my survey? This is exactly what I have been looking for! Many thanks, A.


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5940 replies
  • November 1, 2021

Forum|alt.badge.img+1
  • 1 reply
  • December 7, 2021

https://community.qualtrics.com/XMcommunity/discussion/comment/41526#Comment_41526Hi TomG,
May I also request your help with implementing your code on my survey?


Forum|alt.badge.img+1
  • 2 replies
  • December 23, 2021

Hi TomG ,
Can you please also send me the detail on how to use your code? Thanks


Forum|alt.badge.img+1


https://community.qualtrics.com/XMcommunity/discussion/comment/41526#Comment_41526TomG Hi Tom. I am looking for thí solution. Can you help me with that please. Thank you.


Forum|alt.badge.img
  • 1 reply
  • June 27, 2022

I am looking to change the text within the "Response Requested" box so that it contains a custom message. I am wondering if this could be achieved by editing the code that TomG has referred to. If so, could I request the code or have some pointers?
I tried to use this code, but it only seems to work when I have "Force Response" on as opposed to "Request Response."
Qualtrics.SurveyEngine.addOnReady(function(){
    const qid = this.questionId;
    tot_choices = Qualtrics.SurveyEngine.registry[qid].getChoices().length;
    var sel_choices = 0;
    
    that = this;
    this.questionclick = function(){
        sel_choices = that.getSelectedChoices().length;
    }
    
    document.querySelector("#NextButton").onmousedown = function() {check_answers();};


    function check_answers(){
        if (sel_choices == tot_choices){that.clickNextButton();}
        else{
            //Selecting Okay will result in continuing
            if (confirm("Custom message here") == true) {
                that.clickNextButton();
            } 
        }
}
});


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5940 replies
  • June 27, 2022

I've updated my function to optionally override the bullt-in Qualtrics error messages for force response and request response.


Forum|alt.badge.img+1

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5940 replies
  • July 27, 2022

Leave a Reply