- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 11:46 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 12:40 AM
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 02:09 AM
@Khalid9030, I would recommend it as these conditions check that the current user has permissions to created or update the record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 02:22 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 02:46 AM
@Khalid9030 Either create 2 separate buttons or in the condition do an OR statement
current.canCreate() && current.isNewRecord() || current.canWrite()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 03:16 AM
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?