Hi,
Is there any way to highlight the row where the respondent have entered the invalid value or is there any way we can highlight the row where answer is missing in the matrix question.
For example, I have matrix question with text entry and I want to highlight the row where I have entered the invalid value in it. In the below example,I have entered the invalid value for the second option and want to highlight that row, I need this because in my matrix question there are no of statements with columns and want to highlight the respected row with invalid answer or not answered.
Any help would be appreciated.
Highlight row for the invalid answer
Best answer by rondev
Try the below code:
var that = this.questionId;
jQuery("#"+that+" input[type='text']").each(function(){
if(isNaN(jQuery(this).val()) || parseInt(jQuery(this).val())>100){
jQuery(this).parent().parent().css("background-color","#FA8072");
}
});
jQuery("#"+that+" input[type='text']").on('input',function(){
jQuery(this).parent().parent().css("background-color","");
});
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.
