Integrate voice capture into your QuestionPro surveys with a single Pre JavaScript Logic block. Requires QuestionPro Research or Team Edition.
AvailableIn your survey editor go to Logic > JavaScript Logic > Pre JS and paste this code. Replace proj_XXXXXXXX with your project key from the dashboard. The code loads the widget, inserts it next to the open-ended answer field, and initializes it automatically. Note: JavaScript Logic is only available on the QuestionPro Research and Team editions (not Essentials or Advanced).
window.__VC_PRELOADED=true; try {
var ta = document.querySelector('textarea.form-input:not(.hidden-text)');
if (ta && !document.getElementById('gv-container')) {
var wrap = document.createElement('div');
wrap.id = 'gv-container';
wrap.setAttribute('data-project','proj_XXXXXXXX');
wrap.setAttribute('data-target','textarea[id="'+ta.id+'"]');
wrap.setAttribute('data-lang','es');
// Optional: wire a QuestionPro merge field here so recordings join back
// to the survey response, e.g. wrap.setAttribute('data-session','${...}');
ta.parentNode.insertBefore(wrap, ta);
if (!document.getElementById('gv-script')) {
var s = document.createElement('script');
s.id = 'gv-script';
s.src = 'https://api.voicecapture.ai/voice.js';
s.onload = function(){ try { if (window.GeniusVoice && GeniusVoice.init) GeniusVoice.init(wrap); } catch(e){} };
document.body.appendChild(s);
}
}
} catch(e) {}Our AI assistant can walk you through the setup step by step.
Set up Voice Capture in under 5 minutes. No credit card. No commitment.
Get Started FreeWe use cookies to improve your experience and analyze site traffic. Learn more