Category: Javascript

Convert text fields to cascading dropdowns – unlimited number of levels

· Alexander Bautz · DFFS Plugin, Form modification, Javascript, SharePoint 2007, SharePoint 2010, SharePoint 2013, Utilities · 114 comments

You find updated documentation here Change log August 21, 2015 Changes in v3.524 Fixed a bug when using single quote in the items used in the dropdown menu. July 13, 2015 Changes in v3.523 Fixed issue with :multi and hide empty dropdowns not hiding the correct elements. Fixed issue with :multi and autofill single option […]

vLookup for SharePoint 2013 v1.5

· Alexander Bautz · DFFS Plugin, Form modification, Javascript, List view modification, SharePoint 2010, SharePoint 2013, Utilities, vLookup · 200 comments

Change log September 3, 2014 Changes in v1.730: Minor update for compatibility with DFFS v4 “direct to backend script”. June 27, 2014 Changes in v1.723: Added check for a function named “vlookupChildViewOrEditCallback” to detect open or edit of a child (in dialog only). Add a function with this name, and it will be called when […]

spjs-utility.js v1.17

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

Change log January 29. 2014 v1.179: Added option to clear a people picker in SP 2013 using setFieldValue – specifying an empty string as new value. November 24. 2013 v1.178: Added option to pass scope to the function “spjs_QueryItems”. Use “scope”:”Recursive” to search all items without folders. October 30. 2013 v1.177: Fixed bug in init_fields_v2() […]

Dynamic Forms for SharePoint v3

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

Change log Always test a new version to see that it works as expected before adding it to a production environment. June 19. 2014 v3.352 has these changes: Fixed the following that went missing in v3.350: Added back the content type choice as trigger and selectable field. Added back the file name field as trigger […]

Remove click events and disable anchor tags in a SP2010 calendar view

· Alexander Bautz · Javascript, List view modification, Requests, SharePoint, SharePoint 2010, Utilities · 9 comments

I got a request from Larry Pfaff: …Can all the links be disabled on a calendar view and allow navigation between months for sp 2010? A bit back and forth between Larry and me produced this code: <!– refer jQuery –> <script type=”text/javascript”> $(“.ms-acal-rootdiv”).bind(“click dblclick”,function(){ return false; }); setInterval(function(){ $(“.ms-acal-item [bricked!=’1′]”).each(function(){ $(this).attr(“bricked”,”1″).bind(“click dblclick”,function(){ return false; […]

Translate SharePoint form field label and description by a dropdown select

· Alexander Bautz · Javascript, Requests, SharePoint 2010, Utilities · 10 comments

Change log August 08. 2013 Moved the code for the file “TranslateFormFields.js” to spjsfiles.com due to errors in the preview. I got this request from Mary Larson for a solution to translating a SharePoint 2010 form in 20+ languages by the selection of a desired language in a dropdown select. I guess installing all these […]

Customized forms using SharePoint Designer – how to use the init_fields function

· Alexander Bautz · Form modification, Javascript, SharePoint · 5 comments

Change log June 27. 2013 I have changed the function “init_fields_customForm()” to properly set the “fieldType” and “fieldDispName” in the fields object. This is a repost of a previously published article. I have updated the code examples for compatibility with newer solutions. I cannot guarantee that this code will make all my various solutions work […]

Dynamic Forms for SharePoint: Now with field tooltip

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

Change log June 03. 2013 Changes in v2.981 Added Danish date format (LCID 1030). Added option to arrange multilookup columns vertically. Changed the identifier for the headings to prevent them from getting a new ID when they are moved or another heading is deleted. Fixed a bug setting a multichoice column as mandatory using the […]