- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2019 08:51 AM
Hello Experts,
I am currently trying to add the close_notes from the Case form to the 'Case Ticket Action' widget but my HTML understanding is bare minimum and i am not able to do so.
The objective here is when the widget appears, the close_notes are to be on top of the buttons so the user can read it before clicking on accept of reject.
Can someone please help?
Thank you.
Solved! Go to Solution.
- Labels:
-
Customer Service Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2019 03:20 AM
Hello All,
After a while i was able to come up with a solution.
Here is the solution:
I've added to the following line (in red) to the Server Script:
var gr = $sp.getRecord();
if (gr) {
data.state = gr.getValue('state');
data.stateLabel = gr.getDisplayValue('state');
data.sys_updated_on = gr.sys_updated_on.toString();
data.label = gr.getLabel();
data.table = gr.getRecordClassName();
data.sys_id = gr.getUniqueValue();
data.CloseNotes = gr.getValue('close_notes');
}
And the following lines to the HTML:
<label>Solution:</label>
<p>{{data.CloseNotes}}</p>
It is not the prettiest solution, but it is working =).
Thank you all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2019 02:38 AM
Hi franksilveira,
Refer below link,
If my reply helps you at all, I’d really appreciate it if you click the Helpful button and if my reply is the answer you were looking for, it would be awesome if you could click both the Helpful and Accepted Solution buttons!
Regards,
Pratiksha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2019 03:07 AM
Hello Pratiksha,
This solution only shows how to add an additional condition to the widget to become visible.
What i need is to display the content of the field close_notes inside the widget.
Regards,
Frank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2019 02:51 AM
Hi Frank
I believe your only option is to clone the Case Ticket Fields widget and update line 12 of the Server Script to include the close_notes field.
Hope it helps.
Matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2019 03:09 AM
Hello Matthew,
I've already tried that and it works as you mentioned, but I am using that solution to display the description field instead.
What I was looking for is to display the close_notes with the Case ticket action widget, that only appears if the case is marked as resolved. In that way, the end user can read and either accept or reject the solution.
Regards,
Frank.
