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

New Post: Running SPServices in SharePoint 2013?

$
0
0
Okay, I have been tinkering with this for the past 4 hours, so either I'm too tired or this is just beyond me.

I can confirm that jQuery and SPServices is working fine by following http://sympmarc.com/2011/07/08/adding-jqueryspservices-to-a-sharepoint-page-step-one-always/. I have a suspicion that there is something wrong with Web Services, since I can do non-web service queries like SPServices.Version; with no problem, but things like SPServices.SPGetCurrentUser do not work.

I have setup a Regions list containing Country and Title fields. I can confirm those are the static names.

On my form I have two fields Country and Region. Both are set to type "Choice". I can confirm that these are the display names.

Code snippet:
<!-- Reference jQuery on the Google CDN -->
<script type="text/javascript" src="/js/jquery-1.9.0.js"></script>
<!-- Reference SPServices on cdnjs (Cloudflare) -->
<script type="text/javascript" src="/js/jquery.SPServices-2013.01.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $().SPServices.SPCascadeDropdowns({
            relationshipList: "Regions",
            relationshipListParentColumn: "Country",
            relationshipListChildColumn: "Title",
            parentColumn: "Country",
            childColumn: "Region",
            debug: true
        });
    });
</script>
Screenshots:

Main list:
Image

Lookup list:
Image

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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