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

@Khalid9030, I would recommend it as these conditions check that the current user has permissions to created or update the record

@Jake Sadler 

so i will mention for

Submit button condition is -->current.canCreate()

And coming save button what should i mention as i have created only one save for both insert and update scenario 

@Khalid9030 Either create 2 separate buttons or in the condition do an OR statement

current.canCreate() && current.isNewRecord() || current.canWrite()

@Jake Sadler 

I added the above code thanks. currently on the form i can see the update button but i don't want to see this update button. what are the changes we can do?