New button in the Custom app

cssservice
Tera Contributor

Hi,

We have a custom application . For the non ITIL users we would like the New button to redirect to the self service view. How could i achieve this? Can i remove the New button and add a custom button? Thanks in advance.

find_real_file.png

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

You can override that new button with another by giving it an action name of sysverb_new and putting it on your new table. If you're condition is testing negative for the itil role, then it should show your custom button to non-itil and then the oob new button for itil.


View solution in original post

6 REPLIES 6

Brad Tilton
ServiceNow Employee
ServiceNow Employee

You can override that new button with another by giving it an action name of sysverb_new and putting it on your new table. If you're condition is testing negative for the itil role, then it should show your custom button to non-itil and then the oob new button for itil.


That worked. Thanks a ton!


Also i cannot have one new button for both ITIL and end user view since they both have different views. ITIL should have a regular view and end user should have self service view. can i hide the new button depending on the role?


I have another problem now. i get a " Not authorized error" when i impersonate as a user and as ITIL. What am i doing wrong here? Here's the script for the New button:



find_real_file.png