I want to hide attachment button on the
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello Experts !!
I want to hide the attachment tab in the ESC portal where approval state is not requested. Please refer to the below screenshot.
We tried updating "Tab Configuration" record to achieve the same.
But the problem here is that it look at sc_req_item table for filter not the approval table. Also, there are chances where we have multiple approvals on the single RITM.
Could you please let me know if it is achievable OOB.
Thanks in advance!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
ahoy @Harshal Aditya,
first of all, it's not a button but rather section or tab on a widget. In case you would find some other resources, this could give you better results than searching for buttons.
I am worried that there's no (easy) way to achieve hiding that tab based on conditions (e.g. approval state). AFAIK, it's only possibly to display/hide at all times or to hide it completely. No chance to select for RITM only (I believe the widget is reused for other task types) and for selected RITMs only.
This would require customisations and extra efforts made on that widget ("Standard Ticket Tab" most likely), if you plan to do that I would encourage you to first duplicate that widget before making any adjustments to it.
✂-----Cutting-out-the---✦AI-noise✦---All-replies-written-and-vouched-for-by-GlideFather---
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Harshal Aditya ,
In the Completed tab, you will only see approval records with states such as Accepted, Rejected, or No Longer Required. Approval records in the Requested state will not appear in the Completed tab.
Therefore, deactivate the existing Attachment Tab Configuration record.
Alternatively, you can create To-Dos Configuration records for each approval state and configure the appropriate target tab, such as Open or Completed. For the configurations where you do not want the Attachments tab to be displayed, simply exclude the Attachments tab.
If you find this information useful, please mark the response as Helpful and Accept the Solution.
Regards,
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Harshal Aditya ,
You can handle this directly through the Task Configuration for the approval experience itself, which is much cleaner than messing with the core sc_req_item setup.
If you navigate to Employee Center > Administration > To-dos Configurations, open up the specific configuration you're using for these approvals and look at the Task Configuration for sysapproval_approver. Under the Tab Configuration section, you'll see the Attachments tab.
Example :
Instead of just turning it off completely for everything, you can use the Visible condition or the Visible Script right there on the tab. This lets you tie its visibility straight to the state of the approval record. So, if you only want people seeing attachments while the approval is still in a Requested state, you just set the condition against that state field.
Deactivating the configuration globally isn't ideal because it kills attachments across all approval types, and this way you avoid having to customize the standard widget.
The OOTB setup handles sysapproval_approver perfectly and maps back to the parent item via the sysapproval reference field anyway, so keeping the logic at the approval configuration level is the best approach. If the basic UI condition builder doesn't behave quite right for your specific use case, just flip over to the Visible Script on that same tab and script the check against the approval record state.
If you find this information useful, please mark the response as Helpful and Accept the Solution.
