Mark, you've done some terrific work on this. It's greatly appreciated.
I don't know whether SharePoint Online is just having a bad day but I've been getting an error with this function. Here are some details: (I'm using SPServices-2014.01 and jquery-1.10.1.min.js)
At Line 3397 //else if (currentContext.thisList.length > 0) {
Error thrown is "Unable to get property 'length' of undefined or null reference".
It looks like _spPageContextInfo.pageListId is returning null in
function SPServicesContext()
Line 4043 //this.thisList = _spPageContextInfo.pageListId;
The other properties all look fine. It's just a standard NewForm. The URL is along the lines of https://<host>/sites/<site>/_layouts/15/start.aspx#/Lists/MyList/NewForm.aspx etc.
I commented out a few lines, supplied listName in the options and it is working fine again :-)
I wasn't able to locate up to date documentation on MSDN to see if there is a difference in SharePoint Online. The 2010 SDK information is the best I could find, at http://msdn.microsoft.com/en-us/library/office/ee552069(v=office.14).aspx
↧