Posts

Showing posts from January, 2016

Read-Only field in forms sharepoint

Image
Here is the default view of an task list form without the read-only field: Open your list in SharePoint Designer. The fastest way is like in the following picture. 2. Create a new form. 3. I created a new form for new entries / items / tasks (be sure to give it a new name e.g. “CustomNewForm”, set it as a “newForm” and set it as default) 4. Open the newly created form in advanced mode. (just right click onto the form and then … advanced mode) 5. Now look for you field (in this case “Priority”) and the important part here is the ControlMode. This is set to “new” (because of the newForm). 6. Change those two values from “New” to “Display” and save the form. After that, if you create a new entry / item / task in your list, the priority field should be read-only. And that is all you have to do. Of course you can do this with every other field. It depends only on the ControlMode of each column.

Display more than 3 views in sharepoint

Image
You build a lot of views but you always have the problem, that only three views are shown? I often had this question by my customers, so I thought this is interesting for everybody. Maybe you have four or more views, you want to show? No problem. We will fix that  right now ! Open the site with your library or list where you want to show more views. Edit the page and add an Script Editor. Click on EDIT SNIPPET And now paste the following script and click on Insert: 1 2 3 4 5 6 7 <script type = "text/javascript" > ExecuteOrDelayUntilScriptLoaded ( overrideSurfacePivotCount , 'clienttemplates.js' ) ;   function overrideSurfacePivotCount ( ) {    ClientPivotControl . prototype . SurfacedPivotCount = 4 ; } ; </script> NOTE:  You can also save the above script in a .js file to attach it to you webpart. How you can do that is shown  here . Also if you have more than 4 views you want to s