Hot answers tagged

8

You can do this using SharePoint Designer. Open the site Open the list Edit "AllItems.aspx" or which view you want to modify Look for <ViewFields> Add the property linkToItem="TRUE" Note for SharePoint 2010 it is LinkToItem Example


7

A workaround to the problem was to handle the Enter keypress event for the textbox via JQuery as follows: $(document).ready(function () { $("#<%= TextBox1.ClientID %>").keypress(function (e) { if (e.keyCode == 13) { $("#<%= Button1.ClientID %>").click(); e.preventDefault ? e.preventDefault() : e.returnValue =...


7

You can put your script inside an EditModePanel control. Setting the PageDisplayMode property determines when it shows on the page. I use them for setting different CSS on a page layout during editing and they would be perfect in your scenario. Look at some of the OOTB page layouts for examples.


3

If you are using Publishing Pages. You can just simply hijack the offending javascript code and have them bend to your will. <script> function WebForm_OnSubmit() { return false; } </script>


3

This is what we are using currently in one of our projects to check if a page is in edit mode or not: // An accesser indicating whether or not the current page is in design mode. function inDesignMode () { var result = (window.MSOWebPartPageFormName != undefined) && ((document.forms[window.MSOWebPartPageFormName] && document.forms[...


3

Finally solved. Filtered log message with list and failed and checked for below kind of error, [STS3::COWSList::GetList] Initialize failed. Return error to caller, URL = sts4://url/siteurl=/siteid={b0485081-a7c0-4029-8009-9c2c38513815}/weburl=/webid={123f3c8c-5a2a-42e9-acbd-bfb67b8084f7}/listid={b4c8bf79-183e-450d-8308-43550697ab51} hr=80642616 [...


2

There are multiple ways to edit the "InfoPath Form" associated with your site. Generally, the InfoPath Form will be associated to an existing list or library on your site. There are two main methods, to updating the form. Firstly, InfoPath using Browser. Secondly, SharePoint Designer. InfoPath To customize your list form in the browser, just browse to your ...


2

Try the following: if (document.forms["aspnetForm"]["MSOLayout_InDesignMode"].value == 1) { //do your stuff } If you want to be sure-sure, you can double check with this property: document.forms["aspnetForm"]["MSOSPWebPartManager_DisplayModeName"].value which should have a value of "Design" if a page is in edit mode, or "Browse" if it's in display ...


2

If you have 'append content' selected for a field, then in edit mode you don't see the full history. You need to view version history to see the content added. When you changed this setting back to No then you will have been advised the field settings were changed so you have 'blanked' out the history


2

I think I may have found why. The page with the EDIT option is a page within the Site Pages library, whereas the other page isn't. Inspection of the URL shows the former ends /SitePages/Home.aspx whereas the latter ends /default.aspx. After a bit of reading, it appears that the home page of a site can be set to be a wiki page rather than the default page ...


2

Encountered same issue when setting up one of my lab farms in Azure a while back. When setting up the Office Web Apps working with SharePoint farm, there's a step during configuration that you need to perform logged on to one of the OWA farm machines: $owaFarm = Get-OfficeWebAppsFarm; $owaFarm .OpenFromUrlEnabled = $true; After that the error should stop ...


2

You have to go to your SharePoint Online central admin, https://tenant-admin.sharepoint.com, and click on User Profiles in the left navigation. From there, you can click Manage User Properties and add any new properties that you want. Edit based on your comment, Possibly, but it would require some work to do, it would probably be better to make it a ...


2

I have tried this in my POC and giving you my approach if it could helps When you see the "EditForm.aspx" url it always comes with source parameter to redirect the page after you finish the save operation. I have updated my source parameter to the same edit url after it loads as shown in below <<siteurl>>/Lists/test/EditForm.aspx?ID=7&...


2

If you want to do a changes in form which has some user created, it is not working with the template in the library, but with the document which was created from the template. So you must download the file as document in the library and change the inner XML, save it and upload to the library again. Or you can use Powershell and edit XML through it. ...


2

Use developer tool to check the element attribute/class to hide it. For example: <style> a[title="Open Menu"]{ display:none !important; } </style> Or hide parent div. <style> div.ms-list-itemLink{ display:none !important; } </style>


2

This is application page and it cannot be edited via UI. Looking at the URL you provided and folder structure it seems this is custom application page deployed via Farm solution(WSP). To modify this page you need to update your code base.... Whatever changes you need to make it has to be done in wsp and then wsp needs to be redeployed.


1

If you are using Sharepoint Designer Open your form in advanced mode Goto below section .You will get this in first 1-2 lines . <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server"> <SharePoint:listformpagetitle runat="server"/> </asp:Content> Remove <SharePoint:listformpagetitle runat="server"/> Add whatever ...


1

Use window.onbeforeunload in edit mode to perform all your operations. Here is how you check edit/display mode window.onbeforeunload = function (e) { var message = "Your confirmation message goes here.", e = e || window.event; // For IE and Firefox if (e) { e.returnValue = message; } // For Safari return ...


1

If you want to enter the page in edit mode just add ?ControlMode=Edit&DisplayMode=Design to your URL. If you want the page list item in edit mode you can get the url via JS like this: var ctx = SP.ClientContext.get_current(); var list = ctx.get_lists().getById(_spPageContextInfo.pageListId); ctx.load(list, 'DefaultEditFormUrl'); ctx.executeQueryAsync(...


1

Incase you are having content editor webparts and in which it has some javascript, you may see these type of issues. Recommended way is have the Javascript or jQuery code in a txt file and link it to the CE Webpart. Let me know if this doesnt suffice your problem


1

When the pages are already checked out to someone else you cannot see the ribbon at the top of the page. Let me know if your case is different.


1

I tried this code it will list Roles that start with Edit.If you know the Role then rhis code can be helpful. [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") $site = New-Object Microsoft.SharePoint.SPSite("http://spe131:5664/") $groups = $site.RootWeb.sitegroups foreach ($grp in $groups) { "Group: " + $grp.Roles; ...


1

You can get Permission reports by User wise include who has edit permission you can filter out from that > function Get-SPPermissionsReport($web, $recursive) { $web | > Get-SPUser | % { New-Object PSObject -Property @{ > UserLogin = $_.UserLogin > 'Roles given explicitly' = $_.Roles > 'Roles given via groups' = $_.Groups | %{$_....


1

Below script is available in Technet. This script basically list permission for all users irrespective of their permission level. You can export this to CSV and use Excel to filter only Edit. GetUserAccessReport "http://site" > "c:\path\permision_report.csv" You can download script from https://gallery.technet.microsoft.com/SharePoint-Access-Report-...


1

To showing the data of the item which you have selected need to add some rules. In your edit view add a Form Load rule which will check if the selected item id is not blank then switch to your Edit view and select Id or a unique filed and set a condition that will match the value from list and populated other filed from the same row based on filtering ...


1

This has nothing to do with SharePoint. However, you might want to take a look at this article, this video and, of course, the official documentation at Technet. Or try asking at Server Fault


1

I ended up going into the List Settings > Form Settings, and choosing the option of "Use the default SharePoint form". This resulted in the proper default forms actually showing up.


1

First You can assign Read permission to the users whom you want to only view the items and not add modify or delete. IF you want the users to add items but not edit or delete any item then Create a Custom Permission Level by going into Site Settings-->Site permission--> Permission Levels--> Add a permission level. Here select the action item you want the ...


1

WonderLaura Rogers http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=247 has a great solution for 'lazy' email approval. Users click 'reply' on a email and when the email is sent to a second list on SharePoint, then a workflow starts to do the approval.


1

You can use following logic to update the items ClientContext ctx = new ClientContext("http://site"); List list = ctx.Web.Lists.GetByTitle("ListTitle"); ListItemCollection items = list.GetItems(CamlQuery.CreateAllItemsQuery()); ctx.Load(items); // loading all the fields ctx.ExecuteQuery(); foreach (var item in items) { item["Modified"] = "2015-07-03"; /...


Only top voted, non community-wiki answers of a minimum length are eligible