22

Might have a slight flicker, but my solution will keep the scroll position of Chrome after you click on calendar icon (better than not having an answer since 2013 ^_^). At the bottom of your aspx page, add following script: function OnIframeLoadFinish() { ULSvmd: ; var picker; if (typeof this.Picker != 'undefined') picker = this....


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


6

Have you already tried SPContext.Current.ListItem?


6

I'm not sure that I understand your difficulty. I used your jQuery above in the following way: <input type="text" value="2/21/2014" maxlength="45" id="DueDate_42f25f08-a9dc-4559-aded-a2e2b9ec5e13_$DateTimeFieldDate" title="Due Date" class="ms-input" autopostback="0"> //I typed this into the console. I use ...


6

The problem is coming from setFocusDatepicker in datepicker.js. The method is calling focus inside calendar iframe which at the end scrolls the window. To make it work you can try to override the method, provided by MS which looks like this: function setFocusDatepicker(elm) { if (elm.onfocus == null) { if (browseris.ie) elm.onfocus = function() {...


6

A simple solution: We create a list validation that only executes in the edit form, not in the new form. For this, we compare the date of creation with the modification date. If they are equal, it is the new form: Formula: =OR(Created=Modified;AND(Created<>Modified;NOT(ISBLANK([test 1])))) Source with images: Surpoint


5

I just wrote up a blogpost with the answer: http://kwizcom.blogspot.ca/2018/05/sharepoint-2013-date-picker-scrolls.html But here are the details: The problem occures in the setFocusDatepicker function, like igby said - but didn't mention how we solve it from our current page if we have no code running in an iframe. Also - the answer by Quang San Hi rely ...


5

List -> List Settings -> there is some Info Path forms server settings link that leads to the page where you can remove customization. Changing default Edit/New pages will not help - you need to modify pages for default content type of this list if you want to go this route. You can also able to do this in SharePoint without needing SP Designer. Navigate ...


4

Every column in SharePoint has 3 names: InternalName (just called Name in <Field> and <FieldRef> elements) StaticName DisplayName (called Title in SPField) InternalName can't be changed after field has been created StaticName can be changed through code DisplayName can be changed through code/UI When accessing data/fields you should always ...


4

You want to override function PreSaveAction() instead of detecting the click with JQuery.


3

You can parse the ID parameter from query string in Dispform.aspx, once you have the ID value you can update "Add new Item" link and pass ID from DispForm.aspx. Please refer to Parse Query String from Javascript to parse URL and get value from Query String.


3

You have a couple options here. I usually do my editing of these forms in SharePoint designer. First navigate to the List and open the EditForm in 'Advanced Mode': Now, within the PlaceHolderAdditionalPageHead element, you can add your <style> block with CSS. Alternatively, you can add a ContentEditor web part directly in the EditForm with a <...


3

Setting ContentType field property ShowInEditForm="FALSE" will not affect the visibility of Content Type Choice control in the Edit form. The visibility of Content Type Choice control (ChangeContentType class) is determined by the following conditions: whether content types are enabled for the list (SPList.ContentTypesEnabled property) the number of ...


3

You can access normal peoplepicker in SP2013 the same way you would access a clientside one. The Problem is, that you need to know the ID to identify the peoplepicker. If you check out the SPClientPeoplePicker.SPClientPeoplePickerDict object in your debugging console, there are all peoplepicker of this page stored in it. You can access the entered user's ...


3

In Sharepoint 2013, the person or group field no longer uses the old directory people picker. They have switched over to the autocomplete option (which however is cumbersome if you don't know what you are searching for). The list forms by default will use this 2013 autocomplete option but if you want to use the 2010 directory people picker, just create new ...


3

I have seen this happen before (when a programmer without SharePoint knowledge 'fixed' a problem with imported/pasted data and emptied/deleted the existing definition of DropDown values The underlying database stores anything that is written to it, so modern JSOM code can write values to a 'DropDown' field without checking those values actually match with ...


3

Sounds like the default for your List Settings is to open Forms as a Modal Dialog instead of a separate page. Open your List settings -> Advanced settings:


3

Use out of the box object WPQ1FormCtx or WPQ2FormCtx. I have seen former in SharePoint Online and the later in SP2013 on prem. The property you are interested in is WPQ1FormCtx.ItemAttributes.FsObjType. If it is 1, the the object being edited is Folder. Attaching the screenshot from my SharePoint tenant. You can also refere to this link. Here I had used ...


3

You can PreSaveAction() function to validate the field(s) before saving the item, in the new item form, click edit page then add content editor web part and add your PreSaveAction(), it will execute when user clicks Save button & before the item is saved, below is a sample: <script type="text/javascript"> function PreSaveAction() { if ...


2

I think upon clicking the edit button, you should update the UI with a progress bar. When the attachments have been added, redirect the page to the edit form. That'll solve your concurrency problems. You don't have to do the progress bar, but it's nice to have it if your attachment upload takes a noticeable amount of time.


2

For once, I suspect that the error you are receiving is pretty clear on the actual error happening. Just think about it: basically, you are performing a sort of "System update" (I am NOT referring to .SystemUpdate) while the user is performing an "User update". Your timeline looks like this: user start editing the item Some code that SharePoint knows ...


2

In Microsoft terms this is called Co-Authoring. You can google this and verify what I have written below. It has 1 less functionality than google docs (and I do not know why google docs has it and Microsoft doesn't). You can edit in browser and in client simultaneously Word and Power Point. You can edit simultaneously Excel only in the web application (in ...


2

Depending on your settings, the newform.aspx page will either open in a dialog (iframe) or open in a new page. Here is how I address this issue in my SPELL library: I don't pass the ID in the URL, but instead I run a script on newform.aspx that follows these steps: When the new form opens, check the parent window if the parent exist (dialog), then the ID ...


2

Out of the box, I am afraid there is no option to remove the comma. I have seen similar issues with dates, where a year would be rendered as 2,012 instead of 2012 for example. Unless you have specific requirements, the easiest workaround is to use a text column instead of a number column.


2

There are options on both the webpart zone and webpart itself to block removal. You should check these in SharePoint designer, I think you need designer permission level to modify these values. What permission level are you planning on giving your users? EDIT Found it: allowcustomization allowlayoutchange allowpersonalization You can also simply remove ...


2

Go to List Settings -> Click on Change new button order and default content type. You can control the order with Position from Top:


2

In SharePoint instead of $(document).ready you should use _spBodyOnLoadFunctionNames for you this would look like this: _spBodyOnLoadFunctionNames.push("myCustomFunctionName"); function myCustomFunctionName(){ $('input[value=Save]').click(function() { var ur = window.location.assign; var URL = ur.replace('EditForm....


2

If your list/library has multiple content types associated with it, the drop down will appear. If there are other content types that are not being used, remove them from the list and they'll go away. Otherwise, you'll need some script or css to remove/hide it.


2

If you do a .remove() instead of a .hide() the fields could (although I haven't seen it to be the case) get blanked out. You would likely see some sort of post back error in that the HTML delivered is different than what was sent, I saw this a lot when trying to modify dropdown lists. If you hide the rows with a .hide(), the fields are still present in the ...


2

I believe that, when you change a value in the Content Type dropdown, the form is submitted and loaded again, so your CSR code should work. On the other hand, you can try to use JQuery and bind you functions to the change() event on the HTML select element. You can select Content Type dropdown using $('select[id$="_ContentTypeChoice"] selector.


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