Issues with assessment_take2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2017 11:14 AM
Greetings all,
I'm currently working on a pilot for surveys for Incidents for my company, and I've come across a snag. I've built the survey and it's working properly except for two things. Everything involved looks to be out of box, and appears to be working for others who were asking about similar functionality. I'm more an admin than developer, don't have much code. In a nutshell, when I go into the survey, there's a box across the top that for most people would say "This survey is in regards in Incident: INC000000". In our instance, I get the short description instead of the number.
I've looked at the code on the UI Page assessment_take2 and it appears to be the same as I've seen posted elsewhere. Looking for some direction on how to make this populate properly.
Any help is appreciated!
Thanks,
Jason

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2017 01:00 PM
HI Jason,
By default the code/page uses the Display Value set for the table in question (see Display values ). If you've set the display value for Incidents to be the short description and only wish to change it for surveys, modify the following code:
In my instance, the code is on line 246 as follows:
Try changing
task_record = tr.getDisplayValue();
To
task_record = tr.number;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2019 01:14 PM
In our London instance, we had the following issue:
Making the following change to assessment_take2 resolved the issue:
From (Line 364):
<a onClick="openTaskOverlay(event)" class="related-task-link">${gs.getMessage('${task_record}')}</a>
To:
<a onClick="openTaskOverlay(event)" class="related-task-link">${task_record}</a>
Result: