Hello,
I want to keep a question from scrolling so that the respondent sees it at all times as they scroll through the page.
Java Code 3.docxI don’t want it to scroll out of view.
I tried the steps at this link How to lock/fix a question at the top of the screen, while scrolling down? — Qualtrics Community.
I was not successful, so I know I am doing something wrong. I am sending you my code (attached). If you could tell me what I am doing wrong, I’d very much appreciate it.
Thanks!!
Page 1 / 1
Hey SuBob
Try using this code:
Qualtrics.SurveyEngine.addOnload(function()
{
base_element = document.querySelector(".SkinInner")
base_element.insertAdjacentHTML('afterbegin', '
');
new_element = document.querySelector("#sticky_vid")
// Change the text below to add the element of your choice
new_element.innerHTML = "
// This is important, otherwise, the element you add will be at the back
base_element.style.zIndex = 1;
new_element.style.zIndex = 10;
});
Hope this helps!
new_element = document.querySelector("#sticky_vid")
// Change the text below to add the element of your choice
new_element.innerHTML = "
Select the active licensures/certifications you currently have.
(If the licensures/certifications are not listed, you will have the opportunity to enter them.)
// This is important, otherwise, the element you add will be at the back
base_element.style.zIndex = 1;
new_element.style.zIndex = 10;
});
Hope this helps!
Deepak - It worked! Thank you so much! I've been messing w/ this for 2 days, and you fixed it in one moment. Thanks again!
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.