Using javascript to create link to term definition. Can you customize the 'sitename.co1.qualtrics.com' says:' part of the message? | XM Community
Skip to main content

We’re using code I found on the internet (not a programmer) to define some terms in our survey. When you click on the term, I see this:

     Sitename.co1.qualtrics.com says

     blahblah etc.

 

Basically it’s saying the URL’s text says x. My boss would like it to say:

 

     pCollegename] says

     blahblah etc.

 

Is this possible?

 

Here’s the code I’m using:

 

How many days of <a href="javascript:void(0);" id="q1">vigorous</a> activity have you had in the last week?

 

<script>

var el = document.getElementById('q1');

el.onclick = function(event) {

    event.preventDefault();

    alert("Vigorous exercise includes activities that take hard physical effort like running, cycling, and intense aerobic exercise.");

};

</script>

 

Thanks for reading!

Be the first to reply!

Leave a Reply