Function

$().SPServices

Web Service

Forms

Supported Operations

Operation Options MSDN Documentation Introduced
GetForm [webURL], listName, formUrl Forms.GetForm Method 0.2.8
GetFormCollection [webURL], listName Forms.GetFormCollection Method 0.2.3

 

Last edited Jan 5 at 1:06 PM by sympmarc, version 2

Comments

glaushine Jun 13, 2012 at 7:53 PM 
Note that GetFormCollection will list all forms for the list, not just the three EditForm, DispForm, and NewForm shown in the MSDN example. It will get custom forms too. Not just those set as default.

$().SPServices({
operation: "GetFormCollection",
webURL: '/[sitepath]/',
listName: '[list name]',
completefunc: function(xData, Status) {
alert( xData.responseText );
$(xData.responseXML).find("Forms > Form").each(function() {
var $node = $(this);
console.log( $node.attr("Url") );
});
}
});