Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Change the default text "This template will update the record as follows" within preview template

Chenab Khanna
Tera Expert

Hi 

I want to update the default text that comes when we click preview on any template. Attached screenshot for reference.

Any help would be appreciated

11 REPLIES 11

Hi Chenab,

Yes, this can definitely be done dynamically. Just go to sys_template.list and update the Short Description field for the template where you want the message to appear when it's selected in the Workspace.

That should let you control the message directly from the template. If this helped, could you mark it as helpful or as the solution?



Sorry i did not clearly understand. Can you please detail out the steps. 

Thanks in advance!

Hi Chenab,

Sure. You can do it directly from the template record.

Open sys_template.list in the application navigator.

Find and open the template you are using in the Workspace.

On the template record, populate the Short Description field with the message you want users to see.

Save the record and then go back to the wworkspace.

Select the template again and the text from the Short Description field should be displayed with the template.

This way, you can have a different message for each template instead of using the same default text everywhere. šŸ™‚

I want to specifically change the text that's displayed under preview and make it dynamic

 

If you specifically mean changing the text shown under Preview dynamically, then I don't think that's possible through sys_ui_messages because those messages are static.

What I meant with the Short Description on sys_template is that you can achieve almost the same result from a user perspective. You can use that field to explain what each template is for, and make that text different per template.

So the actual Preview text itself isn't dynamic, but the template description can be used to give users dynamic context depending on the template they select.

If this helped, could you mark it as helpful or as the solution?