- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2015 12:35 AM
Hi,
I have notification for Assessment metrics (Survey) which triggers and survey is received in email. But I do not want to display the URL instead want to show Click here. On clicking "CLICK HERE" it should redirect the survey link.
______________________________________________________________________________
You have been invited to take the survey: ${metric_type}.
Click here to take your survey:
<mail_script>
var link = new AssessmentUtils().getAssessmentInstanceURL(current.sys_id);
var url = '<a href="' + link + '">' + link + '</a>';
template.print(url);
</mail_script>
To view your survey queue at any time, sign in and navigate to Self-Service > My Assessments & Surveys.
______________________________________________________________________________________________________________
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2015 12:48 AM
Change this to include 'click here'
var url = '<a href="' + link + '">' + 'Click Here' + '</a>';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2015 01:05 PM
You can reference the originating record in the survey notification by using the ${trigger_id}. For the link to the ticket it's ${trigger_id.URI_REF} or Item Requested For is ${trigger_id.u_requested_for}.
Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2017 11:09 PM
Hi,
I currently try to rework the Survey User Invite notification, as described by snowuser11.
I followed your guidance and the what will it contain part is as described:
You have been invited to take the survey: ${metric_type}.
Click here to take your survey:
<mail_script>
var link = new AssessmentUtils().getAssessmentInstanceURL(current.sys_id);
var url = '<a href="' + link + '">' + Click here + '</a>';
template.print(url);
</mail_script>
To view your survey queue at any time, sign in and navigate to Self-Service > My Assessments & Surveys.
The email template received by the users doesn't contain a link at all - see below
You have been invited to take the survey: Instance - test survey 1.
Click here to take your survey:
To view your survey queue at any time, sign in and navigate to Self-Service > My Assessments & Surveys.
Where do i do things wrong?
I found it, so please, ignore my question.
Kind regards,
Yana