Showing an Alert when we add attachment to any catalog item from the portal.

Rushikesh3
Tera Contributor

When we add an attachment to any of the catalog item from the portal it is showing me an alert. But when we are attaching the attachment from the try it after opening the cat item from the maintain item menu it is not showing the alert.

 

We have to catch from where this alert is shown. We checked all client scrips and UI Policy for the same but was not able to track from where the alert is shown.

 

Could anyone please help on the same.

 

Thank you!

3 REPLIES 3

Fernando Koenra
Kilo Sage

Hi Rushikesh,

Are you getting this alert out of the box? When I've added a (correct) attachment to a catalog form via the Service Portal I'm not getting a confirmation by default. 

However as you mention the alert only shows on the portal and not in the backend - then it sounds like this is configured for the portal only. 

- Are you getting this for all catalog items in the portal, or for specific ones only? 

Aside from the things you've mentioned this could for example be configured in;
- The Service Portal widget itself (or from one of the other widgets on the same page)
- A 'UI script' of the mobile/service portal type

 

Kind regards,
Fernando

 

Hello Fernando Koenraad,

Thanks for the information, Yes for me as well it seems it is happening from the portal but do not have access to the widgets in UAT as it is happening in UAT only. To answer your question 

- Are you getting this for all catalog items in the portal, or for specific ones only? 

>> Yes, the alert is shown for every catalog items.

 

Thank you!

Hi Rushikesh,

In that case it might be coming from the Service Portal widget. 
The widget that is typically used for the catalog item form on the portal is called 'SC Catalog Item'. 

In the client script of this service portal widget there is a function called 'setAttachments' that can trigger these alerts. 

On the Server Side part of the widget code these messages are predefined, for example; 

...
m.attachmentAddedMsg = gs.getMessage("Attachment added successfully");
m.renameSuccessMsg = gs.getMessage("Attachment renamed successfully");
m.deleteSuccessMsg = gs.getMessage("Attachment deleted successfully");
...

Would these match up with what you are seeing? 

It might be useful to check with someone who has (full) access to your UAT to specifically check the configuration there and see if the portal page or widget itself is configured differently or customized. 

Hope this helps. 

Kind regards,
Fernando