The CreatorCon Call for Content is officially open! Get started here.

How to remove dismiss button in Special Handling notes

jurajolejar
Tera Contributor

Hello everyone,

I am looking for a way to remove dismiss button in Special handling notes in Case form but I didn't have any success with finding the button in UI Actions or anywhere else. I found the Expire button for table sn_shn_notes but not Dismiss. Any idea if this is even possible to be done?

Thank you!

2 REPLIES 2

jaswalvishal106
Tera Expert

I do not know whether you got it figured out or not however posting here so that it can benefit to entire ServiceNow Community.

Out of the box "special_handling_notes" in "UI Pages" (Table: sys_ui_page) whose HTML need to be updated as shown below:

<!-- Comment starts: To hide Dismiss button
					<td class="shnDismiss">
							<button id = "shn-dismiss_${gr.sys_id}" class="btn btn-default shnDismissBtn" onClick="shi_clicked('${gr.sys_id}','${jvar_table}','${jvar_id}');" aria-describedby="${gr.sys_id}">${jvar_dismiss_message}</button>
					</td>
					Commend ends: To hide Dismiss button -->


jaswalvishal106_0-1758826174785.png

 




Vishal Jaswal
Giga Sage
Giga Sage

Hello @jurajolejar 

Sharing the solution for entire ServiceNow community:

Navigate to All > System UI > UI Pages
Name: special_handling_notes
HTML: 

VishalJaswal_0-1758826447566.png

 

	<!-- Comment starts: To hide Dismiss button
					<td class="shnDismiss">
							<button id = "shn-dismiss_${gr.sys_id}" class="btn btn-default shnDismissBtn" onClick="shi_clicked('${gr.sys_id}','${jvar_table}','${jvar_id}');" aria-describedby="${gr.sys_id}">${jvar_dismiss_message}</button>
					</td>
					Commend ends: To hide Dismiss button -->

Hope that helps!