Category: SharePoint 2007

Custom form for adding list item with attachments

· Alexander Bautz · Form modification, SharePoint 2007, SharePoint 2010, SharePoint 2013, Utilities · 15 comments

Change log March 6, 2018 Clarified the setup instructions as suggested by Rob Mason. April 5. 2014 Updated to v1.1: Fixed a bug where “args.listBaseUrl” was missing in the function “submitFile”. This made it impossible to add items to another site than the one you triggered the code on. Thanks to Jean-Jacques for pointing out […]

Make field read-only for other than the author

· Alexander Bautz · Form modification, Javascript, SharePoint 2007, SharePoint 2010, SharePoint 2013, Utilities · 2 comments

I got this request from @f_Techno: @SPJavaScripts hello Alexander, I have task list in sps 2010. I want to dim DueDate after create the task. No one should change it except me. This snippet must be places in the EditForm of the list or library where you want the field to be readonly. What this […]

SPJS Upload for SharePoint: Custom upload page for uploading documents to various document libraries in a site collection

· Alexander Bautz · Document library, SharePoint 2007, SharePoint 2010, SharePoint 2013, Utilities · 62 comments

Change log August 04, 2016 New version that supports opening the EditForm after upload. This can be controlled with a variable: // Go to EditForm after upload var showEditFormAfterUpload = true; Set to false to skip this feature.This new feature requires a few extra fields added to the list with the upload destination – and […]

List view: Preview item on hover

· Alexander Bautz · List view modification, SharePoint 2007, SharePoint 2010, SharePoint 2013, Utilities · 262 comments

Change log June 1, 2014 Updated to v1.38: Added “URL” and “Image” as “type” in the fieldData section of the configuration (for use with field of type Hyperlink or Image). Tidied up a few unused variables. Added id attribute “spjs_previewTable” to the main preview table for easier styling. Add style tag to the CEWP code […]

Build a Site Map for SPJS Charts for SharePoint

· Alexander Bautz · Charts, Javascript, SharePoint 2007, SharePoint 2010, SharePoint 2013, SPJS Charts for SharePoint v4, Utilities · 22 comments

Change log January 1. 2014 v1.2 has these changes: Fixed bug where the string representing the “tile” in the org chart exceeds 255 characters and thus halting the script. This is fixes by using a multiline text field in stead of the Title field in the list “SPJS-SiteMap”. You find the updated code below. Updating […]

Formatted auto number in NewForm.aspx or EditForm.aspx using the itemID

· Alexander Bautz · Javascript, SharePoint 2007, SharePoint 2010, SharePoint 2013, Utilities · 18 comments

Change log November 24. 2013 Updated the code examples to support lists with folders. I have also added a code example for use with DFFS (update DFFS to 3.26 or above). You must update spjs-utility to the latest version. This solution let you use the item ID in a calculated column as part of a […]

SPJS Charts for SharePoint: date range filter

· Alexander Bautz · Charts, SharePoint 2007, SharePoint 2010, SharePoint 2013, SPJS Charts for SharePoint v4 · 22 comments

You find the main article in this series here In this article I will show you how to add a date range filter to a chart created using SPJS Charts for SharePoint v4. The code demonstrated below will query the list and get the highest and lowest date in the field specified in the query. […]

Display information from another list based on a lookup column connection: Updated version

· Alexander Bautz · Form modification, SharePoint 2007, SharePoint 2010, SharePoint 2013, Utilities · 77 comments

Change log November 01. 2013 v1.45: Changed the DispForm code to fix an issue with picking up the ID of the selected item. Thanks to Dmitry. October 29. 2013 v1.44: Fixed a bug where the FieldInternalName and not the DisplayName was used as formlabel. October 26. 2013 v1.43: Fixed a bug (data is not pulled […]