make all URL links 'target' "New Window (_blank)" by default | XM Community
Skip to main content
Solved

make all URL links 'target' "New Window (_blank)" by default

  • January 25, 2021
  • 10 replies
  • 1054 views

Forum|alt.badge.img

Capture.PNGEvery time I create a new question in Reach Content Editor and insert a new URL link, the 'target' appears 'not set'. So I have to manually change it "New Window (_blank)"
How I can change Reach Content Editor settings or my Qualtrics account settings, so that target is always set to "New Window (_blank)" by default?
 Let's say my survey has 100 questions and each question has 10 URL links.
Can I search all my 1000 URL links at once to locate those links with 'target' 'not set'?
The problem with URL links which have the 'target' 'not set' is as follows. If a survey respondent clicks such a link, he permanently leaves the survey and cannot return back to the question he left, so he has to start with Question 1

Best answer by ahmedA

image.png

10 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • January 25, 2021

Have you tried using search and replace:
image.png


Forum|alt.badge.img
  • Author
  • Level 1 ●
  • January 25, 2021

This is how HTML code looks for a good URL link:
https://library.wlu.ca/" target="_blank">My good link
This is how HTML code looks for a bad URL link:
My">https://library.wlu.ca/">My bad link

As you see 'target' is absent in the bad link. So, simple text sear will not help.


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • January 25, 2021

Yes. That seems to be a problem. How about adding this to your header:


Forum|alt.badge.img
  • Author
  • Level 1 ●
  • January 25, 2021

Which header? Can you please explain?


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • January 25, 2021

Look and Feel --> General --> Header (edit). Paste the code above in source.


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • January 25, 2021

image.png


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • Answer
  • January 25, 2021

image.png


Forum|alt.badge.img
  • Author
  • Level 1 ●
  • January 26, 2021

It works!
Would such a script slow down or otherwise negatively affect the survey running and execution?
Is it run only once or is it run every time?


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • January 26, 2021

It'll run on each page. It won't slowdown or adversely effect the survey. The only issue will be with links that you want to open in page, you'll now have to use JS to force them not to open in a new tab.


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • January 26, 2021

I'm assuming that since table of contents is just links, it may be effected, and be forced to open the links in a new tab, but I can't be certain, nor provide a workaround, as my institute doesn't subscribe to TOC.