0

I have below VF Page which shows similar as List Views for Form_Requests_abv__c object. Now I want to hide Edit and Create New View link from the VF Page. Please suggest me a way out to achieve it. Thanks!

Apex Page

<apex:page tabStyle="Form_Requests_abv__c">
<apex:sectionHeader title="Form Requests" subTitle="Home" />
<apex:pageMessages />
    <apex:ListViews type="Form_Requests_abv__c" />
</apex:page>
1

The list view setting is a user setting and work for all the objects that a user has access to not a single object.

You can remove the below setting from User permissions Create and Customize List Views. Link

Just remember this will remove access to create/edit list views for all objects.

You can do it via css

<apex:page tabStyle="Form_Requests_abv__c">
    <apex:sectionHeader title="TEST " subTitle="Home" />
    <apex:pageMessages />
    <apex:ListViews type="Form_Requests_abv__c" />
    <style>
    span.fFooter {
        display: none;
    }
    </style>
</apex:page>
  • I just wanted to remove it on this page only if possible by css or any other javascript or any thing else. – Testing_SFDC Dec 19 '16 at 9:02
  • Updated the answer – manjit5190 Dec 19 '16 at 9:17
  • Thanks manjit! It worked for me! How did you find the syntax ffooter? – Testing_SFDC Dec 19 '16 at 9:42
  • 1
    Right Click on the Create New View and Select Inspect Element. From there you can find it. It is somewhat a css hack. – manjit5190 Dec 19 '16 at 10:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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