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

New Post: SPRequireUnique not working

$
0
0
Hello,

I'm new to SPS functions and trying to learn all I can.

I'm in the need to use the SPRequireUnique function. Yet, for some reason that I'm not aware; this function is not working.

Image
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<script language="javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
<script language="javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/0.7.2/jquery.SPServices-0.7.2.min.js" type="text/javascript">
</script><script language="javascript" type="text/javascript">
    $(document).ready(function() {
        alert("jQuery");
        alert($().SPServices.SPGetCurrentSite());
        $().SPServices.SPRequireUnique({    
            columnStaticName: "Order",
            duplicateAction: 0,
            ignoreCase: "true",
            initMsg: "This value must be unique.",
            initMsgCSSClass: "ms-vb",
            errMsg: "This value is not unique.",
            errMsgCSSClass: "ms-formvalidation"
        });
    });
</script>
Any advise, perhaps something I'm missing?

Viewing all articles
Browse latest Browse all 6517

Latest Images

Trending Articles



Latest Images

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