We found a bug that makes "instructions" label on the Smart Assessment Templates always in lowercase

AlexR2
Tera Expert

We have noticed that the label on the instructions box in the Smart Assessment templates  is always displaying in lower case. It's an eye sore and we wanted to understand how to fix it.

Screenshot_7-1-2026_22132_ameriprisedev.service-now.com.jpeg

Doing some page inspections and searching through the backend objects we found the code that pulls this particular label is located within the Smart Assessment Connected library (sn-smart-assessment-connected/index.min.js

import { t } from 'sn-translate';
export const INSTRUCTIONS_CARD_LABEL = t('Instructions');

The exact code looks up a record in Messages [sys_ui_message] for the user’s language; if a match is found, it returns the translated message; otherwise it falls back to the passed string (“Instructions”).

 

Here's where the bug lies. There is a very old OOTB record from 2014 that's forcing the label to be in lowercase

<sys_ui_message action="INSERT_OR_UPDATE">
<application/>
<code/>
<commented_message/>
<key>instructions</key>
<language>en</language>
<message>instructions</message>
<sys_class_name>sys_ui_message</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2014-11-10 21:38:35</sys_created_on>
<sys_customer_update>false</sys_customer_update>
<sys_id>5b41f03197103100227e10aa1c2975e2</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_name>instructions</sys_name>
<sys_package display_value="Integration - Multiple Provider Single Sign-On (do not activate...use 'Integration - Multiple Provid" source="com.snc.integration.sso.multi">f9d58dbfdb4fcf84976163835b961930</sys_package>
<sys_policy/>
<sys_replace_on_upgrade>false</sys_replace_on_upgrade>
<sys_scope display_value="Global">global</sys_scope>
<sys_update_name>sys_ui_message_5b41f03197103100227e10aa1c2975e2</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2014-11-10 21:38:35</sys_updated_on>
</sys_ui_message>

This legacy entry (from the Multiple Provider SSO plugin) is exactly what’s forcing this label to render in lowercase.

 

When we updated this entry to Titlecase, the SAE template showed it properly.

 

Hopefully this helps other folks that ran into this problem.

2 REPLIES 2

Mark Manders
Mega Patron

Have you communicated this to NowSupport as well, so it can be fixed on the platform instead of through workaround, causing possible technical debt and unnecessary waste of time during upgrades? 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

I haven't yet but I will at some point. I did notice that in my PDI the legacy record doesn't exist but that's probably because I don't have the SSO plugin installed in PDI.