Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Use GetList to retrieve document library template

$
0
0
Figured it out. Used templateUrl to build the correct anchor. My page now always contains a link to the most current version of the InfoPath form.
function getTemplate() {
    $().SPServices({                                                    
        webURL: newURL,
        operation: "GetList",
        async: false,
        listName: "Test",
        CAMLRowLimit: 0,    
        completefunc: function(xData, Status) {
            var templateUrl = $(xData.responseXML).find('List').attr('DocTemplateUrl');
        }       
    });
} // end function
-Brian

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>