Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. Disable Delete button

Disable Delete button

Scheduled Pinned Locked Moved SharePoint
sharepointcomxmltutorialquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bhavnvyas
    wrote on last edited by
    #1

    How to disable delete link button from ribbon in display form in sharepoint site. I already tried below code but its not working in my site.

    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
    Id="RemoveRibbonButton"
    Location="CommandUI.Ribbon">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition
    Location="Ribbon.ListForm.Display.Manage.DeleteItem" />
    </CommandUIDefinitions>
    </CommandUIExtension>
    </CustomAction>
    </Elements>

    N 1 Reply Last reply
    0
    • B bhavnvyas

      How to disable delete link button from ribbon in display form in sharepoint site. I already tried below code but its not working in my site.

      <?xml version="1.0" encoding="utf-8"?>
      <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
      <CustomAction
      Id="RemoveRibbonButton"
      Location="CommandUI.Ribbon">
      <CommandUIExtension>
      <CommandUIDefinitions>
      <CommandUIDefinition
      Location="Ribbon.ListForm.Display.Manage.DeleteItem" />
      </CommandUIDefinitions>
      </CommandUIExtension>
      </CustomAction>
      </Elements>

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Are you trying to remove the button from a List or Library? They are to different things and use different identifiers.


      I know the language. I've read a book. - _Madmatt

      B 1 Reply Last reply
      0
      • N Not Active

        Are you trying to remove the button from a List or Library? They are to different things and use different identifiers.


        I know the language. I've read a book. - _Madmatt

        B Offline
        B Offline
        bhavnvyas
        wrote on last edited by
        #3

        From List

        N 1 Reply Last reply
        0
        • B bhavnvyas

          From List

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          I don't see anything wrong, it seems to be working for me.


          I know the language. I've read a book. - _Madmatt

          B 1 Reply Last reply
          0
          • N Not Active

            I don't see anything wrong, it seems to be working for me.


            I know the language. I've read a book. - _Madmatt

            B Offline
            B Offline
            bhavnvyas
            wrote on last edited by
            #5

            I found this code in MSDN site but its not working in my case.any other solution.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups