web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to hide New Folder...
Power Pages
Answered

How to hide New Folder button on Share Point grid

(0) ShareShare
ReportReport
Posted on by 62

Hi All,

 

How to hide New Folder button on Share Point document upload grid configured from CRM in Portal.

 

Thank you. 

Categories:
  • Verified answer
    H V Profile Picture
    1,510 on at

    Hi @SunilR 

    You can hide "Add Folder" button using JavaScript Code.

    Please add below code in Web Page Localized content's JavaScript Section:

    $(document).ready(function() {
    	$("a.add-folder.btn.btn-info.action").hide(); 
    });
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @SunilR ,

    Do you want to hide the "New Folder" button inside your Share Point document upload grid configured from CRM in Portal?

     

    Based on the needs that you mentioned, I afraid that there is no direct way to achieve your needs. As an possible solution, I think the custom JavaScript code could achieve your needs.

     

    I have made a test on my side, please consider take a try with the following workaround:

    1. Find the specific Entity form your Share Point document upload grid located at within your Portal Management.

    2. Switch to "Additional settings" tab.

    3. Go to the "Custom JavaScript" section part, then type the following JavaScript code (I also agree with @hardikv 's thought):

    $(document).ready(function(){
     $('a.add-folder.btn.btn-info.action').hide()
    })

    4.JPG

    4. Go to your Portal Designer, click "Sync Configuration"-> "Browse website" button, then launch your Entity form again, the "New Folder" button would disappear:

    5.JPG

     

    Please take a try with above solution, hopes it could solve your problem.

     

    Best regards,

  • MuhammadAnas Profile Picture
    5 on at

    Can you please tell me that how to hide delete button from subgrid

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @MuhammadAnas0 

     

    Right-click the delete button and find the logical/ class name of the delete button. And use hardikv / kris reply code as a sample and replace the name. 

     

    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 18

#2
11manish Profile Picture

11manish 16 Super User 2026 Season 2

#3
Harshit Chaubisa Profile Picture

Harshit Chaubisa 4

Last 30 days Overall leaderboard