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

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

  • Dec 2, 2020 1:59 PM UTC
  • 10 replies
  • 422 views

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 ●●●●●●●●
  • Answer
  • Dec 3, 2020 2:36 AM UTC

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


  • Nov 1, 2021 10:34 AM UTC

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 ●●●●●●●●
  • Nov 1, 2021 2:19 PM UTC

Forum|alt.badge.img+1
  • Dec 7, 2021 8:42 PM UTC

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
  • Dec 23, 2021 1:58 AM UTC

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
  • Jun 27, 2022 4:25 PM UTC

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 ●●●●●●●●
  • Jun 27, 2022 6:54 PM UTC

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
  • Jul 27, 2022 9:33 AM UTC

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Jul 27, 2022 12:32 PM UTC