2 Replies · Latest reply on Oct 30, 2017 9:38 AM by vinayksnow

    How to add attachment icon in service Catalog in Mobile View?

      We have a service catalog and few catalog items in it.

      Few of them are created using record producer and very few using regular service catalog.

      I can see attachment icons for the task or incident created by record producer, but I am unable to see attachment for my service catalog in the mobile view(I am able to see on the desktop).

      How can I enable attachment icon in the mobile view in the Request page for service catalog?

        • Re: How to add attachment icon in service Catalog in Mobile View?
          vijay kumar


          1. Create UI Macro
          1a. In the "Type Filter Text" search for UI Macro
          1b. Create New:
          1c. Paste the following code:


          1. <?xml version="1.0" encoding="utf-8" ?> 
          2. <j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"> 
          3. <b>Use the paperclip</b> 
          4. <a onclick="saveCatAttachment(gel('sysparm_item_guid').value, 'sc_cart_item')"> 
          5. <img title="Attachments..." height="16" src="images/icons/attachment.gifx" border="0" width="16"/></a> 
          6. <b>to attach items to this request.</b> 
          7. </j:jelly> 

          2. Add a Variable to your Catalog Item.
          3. Type-- UI Macro
          4. Choose your newly created macro in step 1.
          5. It should show up on your form (see attachment) it is clickable and functions just as the OOB paperclip icon on the top right of forms.
          6. If you want change two attributes in the code above
          6a. Change the icon by uploading an icon or choosing one from the image browser (src="images/icons/attachment.gifx" or src="images/pdf.gifx")
          6b. Change the size of the icon (height="16" or height="25")

          Try out your UI macro.