How to remove dismiss button in Special Handling notes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2024 11:57 PM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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 -->
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @jurajolejar
Sharing the solution for entire ServiceNow community:
Navigate to All > System UI > UI Pages
Name: special_handling_notes
HTML:
<!-- 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!