Lot of SharePoint and some other tech stuff

SharePoint 2013 – Disable multiple columns in Quick Edit

Until SP 2010, the datasheet was quite useful but rudimentary. It was an ActiveX control that did not allow any alterations to be made. With 2013, Microsoft came up with a slightly (very slightly) better replacement called the Quick Edit.

Step 3. Adding the code to the List View

Place the code in a .txt file. Be sure to enclose it in <Script> tags. Upload to a document library and then paste its URL in the Content Link of the CEWP. Notice the absence of body onload or $(document).ready functions. We need the function to run inline as soon as it is encountered before the rendering of the JSGrid begins. I like the simple way of doing it, you might have your own preference.

Step 4. Stop Editing

Save the changes by clicking on ‘Stop Editing’ under the ‘Page’ Heading in the top-left.

If you have made the changes correctly, they will start reflecting immediately.

Now, what if Minimal Download Strategy is enabled in your organization?

Post navigation

Hi, thanx for this. But it didn´t quite work for me. This is what I loaded as a text file into the documents library (library has check out required). I assigned rights for that file just for me (the list views were created by others as public views but I have site collection admin rights on that SP site and placed the URL into CEWP in that view and clicked stop Editing. So here is the code I used

Thanx for quick answer. I enclosed the code in code tags for some reason it didn´t show here.
Second, can you please elaborate more on point 2? All my knowledge about this kinda scripting (I am more of a VBA guy really) is googled so at this point I have no idea how to follow your suggestion.

the code should be written as
< script type="text/javascript" >
...Your code here
< /script >

Point 2 is about debugging. There are a variety of reasons the code might not execute. We normally use a alert("Text here" ) method to display the value of variables or log messages.
You can add it anywhere on your code to understand which part of your code is being executed or not.
Once you are comfortable with that, you can try console.log() to note messages in a proper developer way 😛

Which I need to display more then 3 views which are available on that list.
Is there a way how to merge this one with the one which disables the columns in Quick Edit? I sort of need both..
Many thanx
Jan

I was also facing problem to make it work, I was using type=”text\javascript” in script tag where it shud be “text/javascript” in script tag. the solution works great. Thanks a lot for sharing the knowledge.

What I did was simply to use a calculated column. Then I just set it to the name of the column that I wanted to disable and added it to the view. I then made the original column hidden. You can not edit a calculated column in quick view.

I wanted same ,that disable columns in quick edit but on button click(click event)
I have added one button “submit” I just wanted that your code should be run and make column read only on submit button click event

I would tend to use a JavaScript/client side script for making the fields read-only. For a more stable solution, clicking on submit would update a hidden field in the row. The hidden field value would be checked to validate whether the columns should be editable or read-only.