6 votes

Sharepoint Datepicker jumps to top in Chrome

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 ...
Shai Petel's user avatar
6 votes
Accepted

How to Make Fields Required in Edit Form

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 ...
Juan Pablo Pussacq Laborde's user avatar
5 votes

SP07 Designer - Reset to the default list EditFrom.aspx

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 ...
Md. Tahmidul Abedin's user avatar
5 votes

Hide column from Edit form in SharePoint Online

With PnP PowerShell Cmdlets Connect-PnPOnline <tenant-site-url> $ctx = Get-PnPContext $field = Get-PnPField -Identity <field-name> -List <list-name> $field.SetShowInNewForm($false)...
Tom's user avatar
  • 251
4 votes
Accepted

Check if the currently opened item is a folder or a document in EditForm.aspx

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....
Nadeem Yousuf-AIS's user avatar
3 votes

Use SharePoint Edit List Item form as Separate page

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:
Danny '365CSI' Engelman's user avatar
3 votes
Accepted

Dynamically add link to current item edit form

Suppose you have ID field in you view, and you want to have a hyperlink on it which will redirect toCustomEditForm.aspx. Earlier we used to do it with SharePoint Designer, but in SharePoint 2013 they ...
Yayati's user avatar
  • 1,728
3 votes

Dynamically add link to current item edit form

On List Tools menu, select Modify View. In columns section on page, you can select Edit (link to edit item) as column. This will add a button to list which is directly opens edit item form on list ...
newbie's user avatar
  • 1,737
3 votes
Accepted

Custom Button on Edit Form

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 ...
A.Saéed's user avatar
  • 1,647
2 votes

changing width of text box in edit form

With CSS, you can achieve this by using below code: textarea[title="<<Internal Name of the SharePoint Multiline Field>>"] { width: 1000px; } With jQuery, it can be easily achieved by ...
AmitWiki's user avatar
  • 1,029
2 votes
Accepted

SPUtility not working on Custom edit Form

Rendering of Default List Forms & Customize List forms are different. If you want to work SPUtility successfully in your custom list forms, then you have to add some of the tags in your custom ...
Jay Doshi's user avatar
  • 545
2 votes

SharePoint EditForm add new button to footer

Add the URL of the next (current) form as the &Source=[url] parameter The Source parameter in the URL is where the browser is redirected to after a Form is saved. Default behaviour is to return to ...
Danny '365CSI' Engelman's user avatar
2 votes
Accepted

Customize Lookup form field (new, edit) with JSLink

At the point in your code where you want to get the choices, ctx.CurrentFieldSchema.Choices is an array of lookup choice objects, which each have two properties, LookupId and LookupValue. Here is a ...
Dylan Cristy's user avatar
  • 12.7k
2 votes
Accepted

Edit view open point to a content type

While adding it which content type you have selected same content type will be displayed while editing. If you want to change the view to the another content type then you have to change the content ...
Raghavendra C's user avatar
2 votes

Edit view open point to a content type

You will have to set the desired Content Type as a default content type for your List. Go to List Settings from ribbon and select the link shown in the screenshot below. And then you can change the ...
Aks's user avatar
  • 487
2 votes
Accepted

Hide column from Edit form in SharePoint Online

You need to use SharePoint online PowerShell. In that powershell, try below code: $User = "[email protected]" $SiteURL = https://tenant.sharepoint.com/sites/site #enter site collection ...
Gautam Sheth's user avatar
  • 30.9k
2 votes

Dynamically add link to current item edit form

Beside great response by Yayati, found out No coding solution today. 1) Create a Calculated column 2) Set the formula to ="<a href='http://...../sites/mySiteName/Lists/myListName/CustomEditForm....
Danilo's user avatar
  • 1,759
2 votes

JavaScript: Get list fields for edit, or getShowInEditForm

Yes, there is no property like getShowInEditForm, it's only setShowInEditForm that used to control the display of a specific field in edit form by setting true to show it or false to hide it in the ...
Mohamed El-Qassas MVP's user avatar
2 votes
Accepted

Sharepoint not saving attachment on EditForm.aspx

There are two issues with you initial code in the line where you call WebForm_DoPostBackWithOptions: WebForm_DoPostBackWithOptions( new WebForm_PostBackOptions( $("[name*='SaveItem']:...
Anon's user avatar
  • 805
2 votes
Accepted

Hide fields in a Workflow 2013 Task Edit form

Add the code below into script editor web part into EditForm.aspx page in workflow task list to hide the '% Complete' and 'Task Status' columns. <script src="https://code.jquery.com/jquery-1.12.4....
LZ_MSFT's user avatar
  • 6,219
2 votes

Content types not displaying when editing list item

Yes apparently this is how it works. If you uncheck the visibility of the CT from the "New" button order menu in the list settings, it disappears from the default edit form as well. I have tried this ...
Vipul Kelkar's user avatar
  • 1,534
2 votes

Custom save button on newform.aspx is not visible, enabled. how to trigger event

Modify the code as below to call the onclick event of custom buttons inside document.ready. <script src="https://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script> <...
LZ_MSFT's user avatar
  • 6,219
2 votes

Add custom css/html and javascript to editform.aspx

You may read this: https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/hh185011(v%3Doffice.14) It applies to SharePoint 2010 but should work in other versions too. I ...
airliner's user avatar
  • 195
2 votes

Tabbed UI for SharePoint Online SPList NewForm.aspx

Did you, by any chance, auto format the JavaScript (i.e. tidy)? That MultiString function that he's using is very touchy, and could easily break if the value of tabsStyle is reformatted in any way. ...
Joe McShea's user avatar
  • 1,515
2 votes
Accepted

Save and instantly redirect from NewForm to EditForm, in Online 365. Old solutions does not work for me

I have tested in Online and also 2016 on prem and can verify the behaviour there. However, it seems that giving the Source absolute still works, as long as it is a target in the current ...
Nils's user avatar
  • 2,327
2 votes

Unable to set a People or Group field as Read-Only inside our edit form

The following code for your reference. <style> a[id^='ProjectProjectManger'].sp-peoplepicker-delImage{ display:none; } </style> <script src="https://code.jquery.com/jquery-1.12.4....
LZ_MSFT's user avatar
  • 6,219
2 votes

Hide Edit Form option from SharePoint Online List

Found the answer in Permission levels. Change the Edit Permission level to unchecked for Manage Lists under List Permissions. The option to edit columns is there but the permission is set fail it when ...
Ataul Hossain's user avatar
2 votes

Hide Edit Form option from SharePoint Online List

You can check out https://github.com/pnp/sp-dev-fx-extensions/tree/master/samples/js-command-hide-commands. This extension can hide any commands from the command bar.
RussGove's user avatar
  • 1,254
1 vote
Accepted

Scroll to bottom of a list edit form dialog box in SharePoint 2013

hope this serves your need. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script> var scrolled = 0; $(document).ready(function() {...
Pradeep Kumar's user avatar

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