Go to zenloop

zenloop support centre

Search for any help questions or topics.

Adding Hyperlinked Text in Website Surveys

Avatar
Maria Herrell
Updated 11 months ago

If you want to include additional elements, such as a link to your Privacy Policy, use this script after the main survey script:

<script>
document.addEventListener('zl.loaded', function() {
setTimeout(function() {
var footer = document.getElementsByClassName("zl-footer")[0];
var a = document.createElement('a');
var link = document.createTextNode("Our terms & conditions");
a.appendChild(link);
a.href = "https://www.zenloop.com";
a.target = "_blank";
footer.appendChild(a);
}, 1000);
});
</script>

and change a.href to the destination URL and replace "Our terms & conditions" with your text.

The link will appear with a delay but will be visible under the survey.

So if you're also adding identities and/or properties, the order of the scripts should be:

  1. Identities/Properties

  2. Survey

  3. Additional Elements (such as linked text)

😞 😐 😃