Survey URL Issue getting error on page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 11:16 PM - edited 03-20-2024 11:19 PM
Hi All,
I have created one low feedback survey notification, when user gives low feedback then this notification should be Triger and go to the survey manager, it is working fine but in that notification i have added one link button to show survey response, This link is showing an error, please see the error below snapshot.
Survey Responses are not visible from survey response link despite admin access.
For this link i have created email script.
Please see the below email script code:
(function runMailScript(current, template, email, email_action, event) {
template.print('<p><font size="3" color="#000000" face="Calibri (Body)">');
template.print('</font></p>');
template.print('<p><font face="Calibri (Body)">');
var id = current.getUniqueValue();
var type = current.getValue('metric_type');
var uri = gs.getProperty('glide.servlet.uri').toString();
var url = uri + 'assessment_take2.do?sysparm_assessable_sysid=' + id + '&sysparm_assessable_type=' + type + '&sysparm_reader_view=true';
template.print('<a style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; background-color: #278efc; border: 1px solid #0368d4; display: inline-block; padding: 5px" + href= ' + url + '>Please review the survey response here </a>' );
template.print('</font></p>');
})(current, template, email, email_action, event);
Could you please anyone help me on this to get the proper solution.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 12:03 AM
You can follow this question as well: https://www.servicenow.com/community/developer-forum/question-on-survey-response-link-button/td-p/28...
Different user account asking it, but exactly the same text (and even in the same part of the community).
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 12:22 AM
Hi,
I am receiving the above error when I click on Try it in the assessment_take2 UI page or on the survey link.
Can anyone please help me fixing this issue.
Regards,
Vishal