How to hide a button on tab in related list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 01:47 AM
Hi ,
I have a requirement to customize a tab 'task' and a button 'edit task' on it. which i tried to create but the button 'edit task' is visible on catalog task also. how can i hide the button on catalog task. I am new this ,could you please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 01:55 AM
Hi @Anupriya_11
In the Edit Task UI Action condition add the following condition. If your condition field already have some conditions add an & character the add the following
!RP.isRelatedList()
Please mark my answer helpful and accept as solution if it helped you 👍✅
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 07:19 AM
Hi @AnveshKumar M ,
If i am adding the condition it is getting removed from both the tabs.
i have tried with the condition (new GlideRecord(current.getTableName())).canWrite() && RP.isOneToMany() && !RP.getListControl().isOmitEditButton()&&!RP.isRelatedList() .
Thanks,
Anupriya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 11:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 01:57 AM
Hi @Anupriya_11 ,
Right click the header and click "List control":
Afterwards you can omit new and/or edit button which will hide the button:
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/