Why does my Qualtrics JS in header only seem to wo

2019-08-04 14:15发布

问题:

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>