The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to Overwrite Update button function

Nirmala B
Giga Contributor

I have created customized table. In that I have to Overwrite Update button function. I'm not able to find the Update button in UI action list. Anyone help in how to overwrite function of Update button. 

1 ACCEPTED SOLUTION

bernyalvarado
Mega Sage

Hi @Nirmala B 

The UI action that you're looking for is here:

https://yourinstanceurl/nav_to.do?uri=sys_ui_action.do?sys_id=42df02e20a0a0b340080e61b551f2909

 

As others have mentioned, make sure you're aware of what you're doing. Don't modify this record but rather change the table field to your custom table and then do "Insert and Stay" so you can start working on the UI action with the additional operations you want to do in top of the out of the box update logic.

 

Thanks,

Berny

View solution in original post

12 REPLIES 12

Hi Nirmala, 

 

That's right. By creating a new one with the table field pointing to your table it will not affect the global one. 

 

Thanks,

Berny

Priyanka Chandr
Mega Guru

Hi Nirmala,

Go through the link that may help you

https://community.servicenow.com/community?id=community_blog&sys_id=d01e6e2ddbd0dbc01dcaf3231f9619df

Kindly mark it correct and helpful.

Thanks,

Priyanka

Megha Padale
Giga Guru

Hi Nirmala,

If you want to overwrite inbuilt global update ui action, don't change functionality of OOTB  update button.

Create new update UI action form button and override action name of global update button so that new update button funcionality will only change for selected table. And there will be no impact on other tables.

Here are the steps to override update button:

1.filter UI action Table-> global

find_real_file.png

2. find action name of global update button.

find_real_file.png

3.select table name 

4.copy action name of global update button in new update to override update action.

find_real_file.png

If my answer helped you in any way, mark answer as helpful and correct.

Thanks and regards,

Megha.

Indrajit
Mega Guru

Hey Nirmala,

The Update button is of global table try find out in UI action,make it active false. but if you are making it false it will hide for all tables in ServiceNow.

find_real_file.png

Right click on header and click insert and stay change the table name to Custom table name  and use same action name and save.

find_real_file.png

To know the process of override ui action refer below link,

https://docs.servicenow.com/bundle/orlando-platform-administration/page/administer/list-administrati...

Kindly Mark Correct and Helpful if applicable.

Regards,

Indrajit.

 

Hi Indrajit,

Thank you for the response. It helped me in solution but it would be better if you could tell me how to hide update button only for my custom table on condition.

Example: If A=='true'{hide the update button of my table}