We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Change schedule add Short Description

Max Lin
Tera Contributor

Hi experts! 

How can i add Short Description into the Change Schedule view?

Thanks all for the help! 

find_real_file.png

1 ACCEPTED SOLUTION

S C
Giga Expert

Update - I have fixed this now:

UI Script: change_soc

 

Approx. line 40:

 SHORT_DESCRIPTION: "short_description",

 

Approx. line 163

{
			name: SOC.COLUMN.SHORT_DESCRIPTION,
                            label: i18n.getMessage("Short Description"),
                            align: "left",
                            width: 220,
                            min_width: 220,
                            resize: true,
                            template: function (content) {
                                return "<span>" + content[SOC.COLUMN.SHORT_DESCRIPTION] + "</span>" + "<span data-toggle='tooltip' data-trigger='hover focus click' data-container='body' data-placement='auto bottom' class='select-task icon-target'"
							+ "data-original-title='" + msgSelectRecord + "'" + "</span>";
                            }
                        },

View solution in original post

7 REPLIES 7

Jaspal Singh
Mega Patron

This would require customization & change to UI Page: change_soc 

Found a link that should help.

S C
Giga Expert

Hi Max,


I followed the steps here: https://community.servicenow.com/community?id=community_question&sys_id=520111d8dbde2f00f0612183ca961931

As I am also trying to input Short Description and I can get all the columns but the data is showing as Undefined. Any ideas?

UI Script: sn_chg_soc.data

Approx. line 57

short_description: record.short_description ? record.short_description.display_value :"",

 

UI Script: change_soc

Approx. line 163

{
                            name: SOC.COLUMN.SHORT_DESCRIPTION,
                            label: i18n.getMessage("Short Description"),
                            align: "left",
                            width: 220,
                            min_width: 220,
                            resize: true,
                            template: function (content) {
                                return "<span data-toggle='tooltip' data-trigger='hover focus click' data-container='body' data-placement='auto bottom' " +
                                    "data-original-title='" + content[SOC.COLUMN.SHORT_DESCRIPTION] + "'>" +
                                    content[SOC.COLUMN.SHORT_DESCRIPTION] +
                                    "</span>";
                            }
                        },

I have also updated the Schedule Definition Columns with Short Description.
Cleared cache.

Still showing undefined.

find_real_file.png

S C
Giga Expert

Update - I have fixed this now:

UI Script: change_soc

 

Approx. line 40:

 SHORT_DESCRIPTION: "short_description",

 

Approx. line 163

{
			name: SOC.COLUMN.SHORT_DESCRIPTION,
                            label: i18n.getMessage("Short Description"),
                            align: "left",
                            width: 220,
                            min_width: 220,
                            resize: true,
                            template: function (content) {
                                return "<span>" + content[SOC.COLUMN.SHORT_DESCRIPTION] + "</span>" + "<span data-toggle='tooltip' data-trigger='hover focus click' data-container='body' data-placement='auto bottom' class='select-task icon-target'"
							+ "data-original-title='" + msgSelectRecord + "'" + "</span>";
                            }
                        },