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 ...
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 ...
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 ...
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)...
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....
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:
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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']:...
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....
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 ...
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>
<...
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 ...
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. ...
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 ...
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....
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 ...
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.
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() {...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
edit-form × 2142013 × 38
sharepoint-online × 33
javascript × 28
newform × 27
sharepoint-designer × 26
list × 25
jquery × 25
custom-form × 17
content-type × 16
2010 × 15
development × 14
document-library × 12
form × 10
display-form × 10
list-form × 9
sharepoint-enterprise × 8
sharepoint-server × 8
custom-list × 8
web-part × 7
infopath × 7
column × 7
sharepoint-foundation × 6
list-view × 6
jslink × 6