Thursday, November 12, 2015

How to validation people picker column in newform/ediform.aspx

Javascript:

<script type="text/javascript">

 function fnassign(){
        try{
       

var len3=$("div [title='Assign To']").find(".sp-peoplepicker-resolveList").find("span").length;
        if(len3!=3){
 alert("Please enter the AssignTo value");
        return false;
        }
}

        }
        catch(e)
        {
        alert(e);
        }
        }
</script>

No comments:

Post a Comment