This multipart series of articles is intended to help you getting ramped up with SharePoint Customization. It’s about modifying the default SharePoint user experience, list forms customization, branding, skinning SharePoint portals, etc. In Part 1, We introduced a generic function that can be used to hide the list view toolbar menu items (e.g. New Item, Upload, Edit in Grid view, etc). If you haven’t read it yet, I would encourage you do to that first. Today I’ll show you another two tricks for customizing the list form toolbar.
Trick #2 : Hiding List Form Toolbar Menu Items!
The following function can be used to hide any toolbar item in dispform.aspx. Just call the function passing the names of the items comma separated (e.g. New Items, Alert Me, etc.). The function removes the items and of course the images rendered beside them (if found).
Download hideFormMenuItems.zip – 755 B , Trick #3 will deal with where and how you can add the function to your list form.
The content editor web part gives you the ability to add any valid HTML on the web part page you place it and this surely includes ”
Where the heck is Edit Page Menu Item?!! Just like the old version, it’s not available, I’m still not sure why they did that!
Trick #3 : Just append “&ToolPaneView=2” to the URL and you will have DispForm.aspx in the Edit Mode in your Browser.
Exit the edit mode…
remendous, we managed to hide “New Item” and “Alert Me”.What about renaming “Edit Item” to “Edit Program” and Removing “Delete Item” but leaving the small image (x)? That is what I’m going to cover in trick#4 in the next part!