How to Hide / Disable two custom note types

David Banghart
Tera Contributor

We added two custom note types / choices to Incident.  This is in addition to the default Work Notes and Additional Comments. I want to disable them so they are no longer choices/visible.  There have been some notes made using those custom notes, so I don't want to delete from the table.

1 ACCEPTED SOLUTION

Hi @David Banghart,

 


The solution is actually pretty simple.
Instead of deleting the custom journal fields, just deactivate them in the dictionary.

They won't be shown anymore on the form, but you could still access them if needed. No need to use UI policies or scripts for this requirement.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

View solution in original post

6 REPLIES 6

Pavankumar_1
Mega Patron

Hi @David Banghart ,

 Are you looking to hide few choices on those fields?

if you provide some screenshots with fields and values that will be helpful to understand requirement.

 

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

@Pavankumar_1  / @GodOfWar  Here is the screenshot:

cusotmer inbound and turnover notes.jpg

 I would like to delete these from the table, however some of these notes had been used, so instead I need to disable their use.  Make them inactive as choices on the Incident and Workspace forms, and anywhere else.

Hi @David Banghart ,

If you want to hide the choices then create onload client script on incident table and use below script and replace with your field names and values.

 

function onLoad() {
//below choices 1 and 2 will be hidden on form
    g_form.removeOption('notes', 1); //give the notes filed name and  choice value
    g_form.removeOption('notes', 2);
}

 

 

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

Hi @David Banghart,

 


The solution is actually pretty simple.
Instead of deleting the custom journal fields, just deactivate them in the dictionary.

They won't be shown anymore on the form, but you could still access them if needed. No need to use UI policies or scripts for this requirement.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.