Service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-26-2024 03:43 AM
Hi,
I am stuck with these two issues when adding an attachment button in the custom widget using below tag.
<sp-attachment-button > </sp-attachment-button >
1. How to restrict user to only add images, not other files
2. How to remove this tooltip from <sp-attachment-button > </sp-attachment-button >
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-26-2024 04:13 AM
Hi @NarsimhaMurty1 ,
Can you please check the below link
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-26-2024 04:50 AM
@Community Alums
Thanks for replying
I have gone through this article already, that issue is different
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-29-2024 02:35 AM
Hi @NarsimhaMurty1 ,
provide the "supported-extensions" as jpg or png in the tag
"<sp-attachment-button modal="true" supported-extensions="{{::data.supportedAttachmentExtensions}}"></sp-attachment-button>"
for more info refer this -> https://docs.servicenow.com/bundle/vancouver-platform-user-interface/page/build/service-portal/task/...
for the user to know you can provide an info icon or some text like "upload file with jpg or png extensions"
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sunil S Kerudi