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

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

I want save functionality on submit button, i.e when i click on submit button the form should stay there only.

Rename the Save button to Submit while you create it i.e when a user clicks on that button the record will be submitted and they will be on the same form.

 

-Pradeep Sharma

But when me open new record, Global Submit Button will be Visible.