Why does my Qualtrics JS in header only seem to work for the first page?

ぃ、小莉子 提交于 2019-12-13 02:18:43

问题


I have tried to place it in in the Qualtrics header with the tag and the JS section within the individual questions in Qualtrics.

This code is successful in hiding the "Powered by Qualtrics" tab at the bottom of the first question, but every other question after the first one will show the "Powered by Qualtrics" tab.

FYI this Qualtrics survey is currently embedded on another site via iframe tags.

Any thoughts?

<script>
Qualtrics.SurveyEngine.addOnload(function() 
{ 
    var plug = document.getElementById("Plug");
    plug.style.cssText += ';display:none !important;';
}); 
</script>

Source: KamikazeBot/The Qualtrics HTML_CSS Bible


回答1:


You can use this in the Footer under Look & Feel -> Advanced:

<script>

    var plug = document.getElementById('Plug');

    if (plug) {
        plug.parentNode.removeChild(plug);
    } 

</script>


来源:https://stackoverflow.com/questions/31754742/why-does-my-qualtrics-js-in-header-only-seem-to-work-for-the-first-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!