<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Hide Attachment not working on Content items on Service portal : Madrid in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740105#M311884</link>
    <description>&lt;P&gt;I created a 'Service catalog content item' to display some static text, to be available on both CMS and Portal views.we are on Madrid version. I want to hide 'Add Attachments' on portal view for this item and made checkbox 'Hide Attachment (no_attachment_v2=true)' but still 'Add Attachments' is getting displayed on portal view.&lt;/P&gt;
&lt;P&gt;Please help me how to solve this.&lt;/P&gt;
&lt;P&gt;Note : Hide Attachment is working fine for Service catalog items but not for Content items&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2019 20:20:16 GMT</pubDate>
    <dc:creator>Snigdha A</dc:creator>
    <dc:date>2019-10-03T20:20:16Z</dc:date>
    <item>
      <title>Hide Attachment not working on Content items on Service portal : Madrid</title>
      <link>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740105#M311884</link>
      <description>&lt;P&gt;I created a 'Service catalog content item' to display some static text, to be available on both CMS and Portal views.we are on Madrid version. I want to hide 'Add Attachments' on portal view for this item and made checkbox 'Hide Attachment (no_attachment_v2=true)' but still 'Add Attachments' is getting displayed on portal view.&lt;/P&gt;
&lt;P&gt;Please help me how to solve this.&lt;/P&gt;
&lt;P&gt;Note : Hide Attachment is working fine for Service catalog items but not for Content items&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 20:20:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740105#M311884</guid>
      <dc:creator>Snigdha A</dc:creator>
      <dc:date>2019-10-03T20:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Attachment not working on Content items on Service portal : Madrid</title>
      <link>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740106#M311885</link>
      <description>&lt;P&gt;Hi Snigdha,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer below article by Mark, i am very sure this will help you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="ng-scope"&gt;&lt;STRONG&gt;Pre-Madrid&lt;/STRONG&gt;, we could script this thru Catalog Client Scripts. Another option would be to customize the SC Catalog Item widget. Both not great, the Catalog Client Scripts are needed on every Catalog Item you wish to have this functionality on, customizing the SC Catalog Item would mean you would miss updates from patches/upgrades.&lt;/P&gt;
&lt;P class="ng-scope"&gt;For if you are not yet on Madrid and do want to hide attachments or make attachments mandatory. Here is some example scripting.&lt;/P&gt;
&lt;P class="ng-scope"&gt;&lt;STRONG&gt;&lt;EM&gt;Hide attachment - onLoad Catalog Client Script&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE class="ng-scope  language-javascript"&gt;&lt;CODE&gt;function onLoad() {
	
	var attachmentButton = top.document.getElementsByTagName('sp-attachment-button');
	attachmentButton[0].parentNode.hidden = true;
	
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="ng-scope"&gt;&lt;EM&gt;&lt;STRONG&gt;Mandatory attachment - onSubmit Catalog Client Script&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;PRE class="ng-scope  language-javascript"&gt;&lt;CODE&gt;function onSubmit() {
  
	if(this.document.getElementsByClassName('get-attachment').length == 0) {
		g_form.addErrorMessage(getMessage('mandatory_attachment'));

		return false;
	}	
   
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="ng-scope"&gt;With&amp;nbsp;&lt;STRONG&gt;Madrid&lt;/STRONG&gt;, some cool and super easy checkboxes are introduced! Checkboxes which can be configured for Catalog Items individually and making scripts like above obsolete.&lt;/P&gt;
&lt;P class="ng-scope"&gt;&lt;EM&gt;&lt;STRONG&gt;Madrid checkboxes&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="ng-scope"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/43997i569424104D104BCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="ng-scope"&gt;And that's actually it! So easy to apply.&lt;/P&gt;
&lt;P class="ng-scope"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="ng-scope"&gt;&lt;STRONG&gt;Do mark it correct answer and helpful in response if this resolves your query&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="ng-scope"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="ng-scope"&gt;Regards,&lt;/P&gt;
&lt;P class="ng-scope"&gt;Ajay&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 20:46:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740106#M311885</guid>
      <dc:creator>Ajay_Chavan</dc:creator>
      <dc:date>2019-10-03T20:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Attachment not working on Content items on Service portal : Madrid</title>
      <link>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740107#M311886</link>
      <description>&lt;P&gt;Hi Ajay,&lt;/P&gt;
&lt;P&gt;Thanks for referring to this article, but i already checked this article.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As mentioned in question earlier, i made "Hide Attachement" to true but still 'Add attachment' is displayed on Content items in portal. This is working for Service catalog items but not on Content items.&lt;/P&gt;
&lt;P&gt;I tries to modify portal widget also but no luck. I f some one has ideas on how to modify portal widget to correct this please help.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 16:27:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740107#M311886</guid>
      <dc:creator>Snigdha A</dc:creator>
      <dc:date>2019-10-04T16:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Attachment not working on Content items on Service portal : Madrid</title>
      <link>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740108#M311887</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;Have you checked that you are using the out-of-the-box "SC Catalog Item" widget?&lt;/P&gt;
&lt;P&gt;If my answer helped you in any way, please then mark it as helpful.&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;BR /&gt;Mark&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.linkedin.com/in/markroethof/" target="_blank" rel="noopener noreferrer nofollow"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 16:46:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740108#M311887</guid>
      <dc:creator>Mark Roethof</dc:creator>
      <dc:date>2019-10-04T16:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Attachment not working on Content items on Service portal : Madrid</title>
      <link>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740109#M311888</link>
      <description>&lt;P&gt;Just tested with Content Item like below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/43995iDAF027A10DCB5963/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;On Service Portal (with SC Catalog Item widget), is shown without Attachment:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/43992iDA87F8174714729B/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="ng-scope"&gt;If my answer helped you in any way, please then mark it as helpful.&lt;/P&gt;
&lt;P class="ng-scope"&gt;Kind regards,&lt;BR /&gt;Mark&lt;/P&gt;
&lt;P class="ng-scope"&gt;---&lt;/P&gt;
&lt;P class="ng-scope"&gt;&lt;A href="https://www.linkedin.com/in/markroethof/" target="_blank" rel="noopener noreferrer nofollow"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 16:53:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740109#M311888</guid>
      <dc:creator>Mark Roethof</dc:creator>
      <dc:date>2019-10-04T16:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Attachment not working on Content items on Service portal : Madrid</title>
      <link>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740110#M311889</link>
      <description>&lt;P&gt;Hi Mark I am using OOB widget "SC Catalog Item" with ID: "widget-sc-cat-item-v2"&lt;/P&gt;
&lt;P&gt;I saw your post related to this "&lt;A href="https://community.servicenow.com/community?id=community_article&amp;amp;sys_id=aff2e9ccdbc17300d82ffb24399619fa" rel="nofollow"&gt;https://community.servicenow.com/community?id=community_article&amp;amp;sys_id=aff2e9ccdbc17300d82ffb24399619fa&lt;/A&gt;" but not sure whats going wrong.&lt;/P&gt;
&lt;P&gt;Hide Attachments checkbox is working correctly for Catalog items. Below is the widget&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/43996i6AC789A170BDB497/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/43993i35D3B7604E7A0709/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/43994i3FA64662DC34FE80/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 18:44:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740110#M311889</guid>
      <dc:creator>Snigdha A</dc:creator>
      <dc:date>2019-10-04T18:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Attachment not working on Content items on Service portal : Madrid</title>
      <link>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740111#M311890</link>
      <description>&lt;P&gt;Can you confirm that widget is actually also on your Service Portal used?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/44001i8F7127913EE4BC04/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="ng-scope"&gt;If my answer helped you in any way, please then mark it as helpful.&lt;/P&gt;
&lt;P class="ng-scope"&gt;Kind regards,&lt;BR /&gt;Mark&lt;/P&gt;
&lt;P class="ng-scope"&gt;---&lt;/P&gt;
&lt;P class="ng-scope"&gt;&lt;A href="https://www.linkedin.com/in/markroethof/" target="_blank" rel="noopener noreferrer nofollow"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 19:23:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740111#M311890</guid>
      <dc:creator>Mark Roethof</dc:creator>
      <dc:date>2019-10-04T19:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Attachment not working on Content items on Service portal : Madrid</title>
      <link>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740112#M311891</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;
&lt;P&gt;Thanks for quick reply, can you please let me know how&amp;nbsp;did you got the above screenshot.&lt;/P&gt;
&lt;P&gt;Usually i check widget and widget instances in chrome developer tools and portal pages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 20:00:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740112#M311891</guid>
      <dc:creator>Snigdha A</dc:creator>
      <dc:date>2019-10-04T20:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Attachment not working on Content items on Service portal : Madrid</title>
      <link>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740113#M311892</link>
      <description>&lt;P&gt;When you have a Catalog Item or Content Item open, CTRL+Right click within the item, and this menu will open.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/43998iB2C4922788BAFDD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="ng-scope"&gt;If my answer helped you in any way, please then mark it as helpful.&lt;/P&gt;
&lt;P class="ng-scope"&gt;Kind regards,&lt;BR /&gt;Mark&lt;/P&gt;
&lt;P class="ng-scope"&gt;---&lt;/P&gt;
&lt;P class="ng-scope"&gt;&lt;A href="https://www.linkedin.com/in/markroethof/" target="_blank" rel="noopener noreferrer nofollow"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 20:03:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740113#M311892</guid>
      <dc:creator>Mark Roethof</dc:creator>
      <dc:date>2019-10-04T20:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Attachment not working on Content items on Service portal : Madrid</title>
      <link>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740114#M311893</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;
&lt;P&gt;Thanks for guidance, Yes 'SC Catalog Item' is the widget used on our portal&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/s/skins/images/F0BD4BAAE8637C6CB0F9E26108F14A96/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 20:15:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740114#M311893</guid>
      <dc:creator>Snigdha A</dc:creator>
      <dc:date>2019-10-04T20:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Attachment not working on Content items on Service portal : Madrid</title>
      <link>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740115#M311894</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;
&lt;P&gt;Thanks for guiding, Yes 'SC Catalog Item' is the widget used in our portal.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/44002iDBBCF0793AAFA465/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 20:32:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740115#M311894</guid>
      <dc:creator>Snigdha A</dc:creator>
      <dc:date>2019-10-04T20:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Attachment not working on Content items on Service portal : Madrid</title>
      <link>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740116#M311895</link>
      <description>&lt;P&gt;@mark,&lt;/P&gt;
&lt;P&gt;Can you help me what i am missing in my portal settings or widget&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 15:51:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740116#M311895</guid>
      <dc:creator>Snigdha A</dc:creator>
      <dc:date>2019-10-07T15:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Attachment not working on Content items on Service portal : Madrid</title>
      <link>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740117#M311896</link>
      <description>&lt;P&gt;This&amp;nbsp;is the known issue with content items on portal in Madrid release. It is fixed in Newyork release.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 20:45:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/hide-attachment-not-working-on-content-items-on-service-portal/m-p/740117#M311896</guid>
      <dc:creator>Snigdha A</dc:creator>
      <dc:date>2019-10-14T20:45:15Z</dc:date>
    </item>
  </channel>
</rss>

