- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 11:48 AM
I'm trying to grab the survey link for a survey I recently created using the email script below.
However using this script in the body of the Notification returns "Take me to the Survey" hyperlinked with the survey URL. What is the best way to tweak this so it only links the Survey URL and does not add the "Take me to Survey" portion with the survey URL hyperlinked?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 11:26 AM
This did the trick. Pulled it from an existing email script and tweaked it a bit. Could use a little clean up but I can get the Survey URL from this.
(function runMailScript(current, template, email, email_action, event) {
var link = new AssessmentUtils().getAssessmentInstanceURL(current.sys_id);
template.print(event.parm2);
})(current, template, email, email_action, event);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 11:26 AM
This did the trick. Pulled it from an existing email script and tweaked it a bit. Could use a little clean up but I can get the Survey URL from this.
(function runMailScript(current, template, email, email_action, event) {
var link = new AssessmentUtils().getAssessmentInstanceURL(current.sys_id);
template.print(event.parm2);
})(current, template, email, email_action, event);