I would only like my respondents to have the option to record audio responses (and no video) but cannot easily do this. Have you developed custom code to achieve this, and if so, would you please share it with me? Thanks in advance!!
Have you developed custom code to only allow audio response only and not video?
Best answer by swholey
Whelp, I ran into a few errors, but a colleague helped me trouble shoot. This is what worked for us:
Qualtrics.SurveyEngine.addOnReady(function()
{
//Qualtrics.SurveyEngine.addOnload(function () {
var questionId = this.questionId;
function hideVideoButton(scope) {
var btn = (scope || document).querySelector(".record-button.record-video");
if (btn) {
btn.style.display = 'none';
console.log("Hidden .record-button.record-video", btn);
return true;
}
return false;
}
// Classic layout: hide once on load, no observer needed
var btnClassic = document.querySelector("#" + questionId + " .video-recorder-device-button");
if (btnClassic) {
console.log("Layout: Classic — hiding", btnClassic);
btnClassic.style.display = 'none';
return;
}
// New survey taking experience: target div.video-container
var section = document.getElementById("question-" + questionId);
if (!section) {
console.warn("Section not found for:", questionId);
return;
}
// Initial hide on load
hideVideoButton(section);
var videoContainer = section.querySelector(".video-container");
if (!videoContainer) {
console.warn("video-container not found for:", questionId);
return;
}
var observer = new MutationObserver(function (mutations) {
var hasAdditions = mutations.some(function (m) {
return m.addedNodes.length > 0;
});
if (hasAdditions) {
hideVideoButton(section);
}
});
observer.observe(videoContainer, {
childList: true,
subtree: true
});
console.log("Observer active on:", videoContainer);
});
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.

