Assistance Needed for Custom Submit Button Configuration Without Modifying OOB Elements

Khalid9030
Tera Contributor

Hello,

 

I have created a custom Submit button in a scoped application for a table. When the user clicks on the submit button, it will update an existing field and redirect to the list view. To hide the OOB submit button, I added the condition current.getTableName() != 'x_gsp_check' to the out-of-the-box submit button. However, my client has requested not to change any existing OOB elements. I have heard that we can use the override option to achieve this. I would like to know how to configure this without changing the OOB submit button. Please assist me.

1 ACCEPTED SOLUTION

@Khalid9030, ensure the action name and name of the ui action is the same.

This will override it and then you can change the script field to meet your requirements

View solution in original post

13 REPLIES 13

Jake Sadler
Kilo Sage

Hello @Khalid9030 ,

 

Go to the global submit Ui action.

Change the table name to "x_gsp_check".

Insert and stay.

 

Now you have your own button that will override the global button.

 

Thanks

 

Jake

@Jake Sadler 
the OOB submit contains the script include and as i mentioned above custom submit button is created on the scoped application  

@Khalid9030, ensure the action name and name of the ui action is the same.

This will override it and then you can change the script field to meet your requirements

@Jake Sadler 

Thanks for the reply,

what about the save button? i can see the two save buttons one is at the time creating the new records and another one is updating the existing record. how can we do override in this situation?