I have developed a solution which have 20 SharePoint hosted app part. Now i want to hide one of the app-part from this hosted app solution, so that user can not see and add that one app part on page. Is it possible to hide it by specifying some property in XML of hosted app.? without removing the web-part from solution.? Thanks!

  • have you developed these as SPFx webparts ? Jan 16, 2019 at 10:54
  • No. I have developed it with SharePoint hosted model. Jan 16, 2019 at 11:00

1 Answer 1


We can use <!-- --> to achieve it.

For example, edit the client web part Elements.xml file as below.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!--<ClientWebPart Name="ClientWebPart2" Title="ClientWebPart01172 Title" Description="ClientWebPart2 Description" DefaultWidth="300" DefaultHeight="200">
      <Content Type="html" Src="~appWebUrl/Pages/ClientWebPart2.aspx?{StandardTokens}" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.