Hide new button from the Service Portal

salu
Mega Guru

Hello Experts,

I want to hide the new button from simple list widget.While clicking in the view all from the widgets it will open up the list and there I need to hide the new button.

Thanks

Saranya

1 ACCEPTED SOLUTION

jesseadams
ServiceNow Employee
ServiceNow Employee

Hi Saranya,


This is an old post so I hope you've found your answer by now.


In case you haven't or somebody else comes across this question it is answered here:


Removing the New button from Service Portal List page



Basically, list control is not available in service portal. The way to do this in the portal is to use the widget instance options to hide the new button.


To do that, add the following to the addition options (JSON format) in the widget instance:



{  


  "show_new" : {  


  "displayValue" : false,  


  "value" : false  


  }  


}


View solution in original post

8 REPLIES 8

Hi,



That code is not working for me, I have used it in my closed incident widget instance and appended the code like below in Additional options,JSON format but still "NEW" button is visible in the closed incident list view.


{


  "always_show": {


  "value": "true",


  "displayValue": "true"


  },


  "panel_body_height": {


  "value": "",


  "displayValue": ""


  },


  "image_field": {


  "value": "",


  "displayValue": ""


  },


  "secondary_fields": {


  "value": "number,sys_updated_on",


  "displayValue": "number,sys_updated_on"


  },


  "rounded_images": {


  "value": "",


  "displayValue": ""


  },


  "list_page": {


  "value": "",


  "displayValue": ""


  },


  "hide_footer": {


  "value": "",


  "displayValue": ""


  },


  "view": {


  "value": "",


  "displayValue": ""


  },


        "show_new" : {


              "value" : false ,


  "displayValue" : false    


 


}


             


}


Hello Mohan,



Please refer this.



I have provided the what the code I used there.



Omit new button and filter in list layout of Service Portal


This:

find_real_file.png

 

Then this:

find_real_file.png

 

Was awesome.  (Madrid patch 7).

 

Thank you for this simple solution!

Hello @xiaix , thank you so much for this sharing.

It is simple to do, especially for someone new in ServiceNow. 

It really help me 🙂

Thank you.