How to override Submit button in Scope Application and I want to stay on that form only when the form is submitted.

Mohd Shahnawaz
Tera Contributor

How to override Submit button in Scope Application and I want to stay on that form only when the form is submitted. 

I have created new UI Action (Submit) button in my scoped application and override the Global UI Action (Submit) button, but when I am clicking on Submit button in my scoped application which I have created, Its redirecting on the previous page, Its not stopping there. find_real_file.png 

find_real_file.png

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Mohd,

 

If you would like the user to stay on the form then you should create Save button. Navigate to UI action and search for save button->Now modify the record i.e change the table name to the Exact Table Name you would like->Right click on select insert and stay. This will create a new record for a custom table.

In case, scope restriction doesn't allow you to do "Insert and Stay" then copy and paste the code.

 

-Pradeep Sharma

View solution in original post

5 REPLIES 5

You can set the Overridden UI Action "Submit" Active field to false and then create a new UI action called Save button(Of course you can name as Submit). This way they only see one button which is of type Save functionality.

 

-Pradeep Sharma