Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Want to modify the new button on a list view to point to a UI page.

jcfourie
Kilo Expert

I would like to modify the "new" button on the list view of a custom table. For example if you click on Incidents->open. The list of all open incidents pop up. Is it possible to change where the blue "new" button points to? I would like to create a custom form through a UI Page and make the New button point there.

I guess another way of asking the question is by saying i want to create a completely different form for a custom table. When an existing entry is opened or a new entry is created it should be done on a custom page. Does anyone know if this is possible or has been done?

7 REPLIES 7

try recommendation from Gurpreet .. looks good


Gurpreet07
Mega Sage

1. Go List controls and omit new button.


2. Create a new UI action (name New) for that table having type list banner button .


3. check client checkbox


4. paste following in onClick


      getUiPage()



5. in script paste following code



function getUiPage(){


  window.location = "catalog_home.do"   ; //replace it with new UI Page


}



Modify according to ur requirement


I'll give it a try and let you know.



Thanks