Hello,
I would like to change the font and size of the "Not applicable" box regarding a cursor question.
Do you know the code to do that?
Hello,
I would like to change the font and size of the "Not applicable" box regarding a cursor question.
Do you know the code to do that?
Best answer by vgayraud
Hi
You can use this custom question javascript, change the style attributes to what you want.
Qualtrics.SurveyEngine.addOnReady(function () {
var qid = this.questionId;
var container = document.getElementById('question-' + qid) || document.getElementById(qid);
if (!container) return;
var labels = container.querySelectorAll('.slider-na label, .n-a-container label.answer');
var i;
for (i = 0; i < labels.length; i++) {
var label = labels[i];
label.style.fontWeight = 'bold';
label.style.fontSize = '14px';
label.style.cursor = 'pointer';
var wrapper = label.closest('.slider-na, .n-a-container');
var input = wrapper ? wrapper.querySelector('input[type="checkbox"]') : null;
(function (lbl, inp) {
function paint() {
lbl.style.color = inp && inp.checked ? '#F3853B' : '#47C3D3';
}
if (inp) inp.addEventListener('change', paint);
paint();
})(label, input);
}
});
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, 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.
No account yet? Create an account
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, 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.