Is there a way to remove the "Add Attachments" icon from one service (but not all of them)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2024 01:21 PM
We are looking for a way to take the paperclip icon off of one HR Service. Is there a way to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2024 01:28 PM
Hi @Rylie Markle ,
1. Navigate to the catalog item in which the "Add attachments" paperclip needs to be hidden
2. Create a new variable of type 'macro' to the specific catalog item
3. Navigate to Service Portal Configuration
4. Create a new Service Portal widget with the following codes in Client controller:
function() {
/* widget controller */
var c = this;
angular.element('label.ng-scope').hide();
//NOTE : The above line here is a JQuery selector inside the angular.element() which is supported in service portal, feel free to change this JQuery selector if you want the attachment element selection to be more specific. In the above code the element label and the class combination are used to hide the attachment
}
5. Add the widget to the Macro type variable created in step 2
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2024 02:39 PM
HI @Rylie Markle ,
You can refer below article written by @Mark Roethof,
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2024 08:57 PM
Hey @Rylie Markle,
There is no need to write scripts here...
In your catalog item, select the 'Hide Attachment' checkbox and that's all there to it.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 04:05 AM
Add attachment option has been disabled, thanks for the solution.