The CreatorCon Call for Content is officially open! Get started here.

Service Portal - Custom Attachment Button on Service Catalog

Joey Wan Kenobi
Tera Guru

Does anyone know how to add make a custom attachment button widget work on the service portal for the service catalog?

In Helsinki, this worked fine:

<a href="javascript:void(0)" class="panel-button sp-attachment-add" onclick="jQuery('#attachment_add').click();">

  <span class="glyphicon glyphicon-paperclip"></span>

</a>

In Jakarta patch 6, the button no longer responds (it does nothing). Can anyone help?

1 ACCEPTED SOLUTION

nathanfirth
Tera Guru

Check out the widget I've posted on ServicePortal.io, there I have an example of a custom widget that triggers the attachment.



https://serviceportal.io/downloads/require-attachments/


View solution in original post

20 REPLIES 20

Hi Nathan, is there any way to order the variable set so that the custom attachment widget shows up at the bottom of the page?  Right now, this widget is showing up in the middle of our catalog item/record producer.  We've tried adding an order to the variable set, but it does nothing.  Thanks!