Issues with assessment_take2

jasonwhitlock
Tera Contributor

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

take2.png

2 REPLIES 2

Nia McCash
Mega Sage
Mega Sage

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:


assessment_take2.jpg



Try changing


task_record = tr.getDisplayValue();



To


task_record = tr.number;


rlathrop
Tera Contributor

In our London instance, we had the following issue: 

find_real_file.png

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:

find_real_file.png