Good morning!
I'm having a problem with a Sharepoint 2010 list. We've done a Javascript code here at work that causes analysts to have two fields, locked for user editing, unlocked. The problem is that all members of the analyst group are falling into user blocking.
<script src="/-/js/jquery-3.1.1.min.js" type="text/javascript"></script>
<script src="/-/js/spjs-utility.js" type="text/javascript"></script>
<script src="/-/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/strategy/sp/js/jquery.SPServices-2014.01.min.js"></script>
<script type="text/javascript">
$().SPServices({
operation: "GetGroupCollectionFromUser",
userLoginName: $().SPServices.SPGetCurrentUser(),
async: false,
completefunc: function (xData, Status) {
if (($(xData.responseXML).find("Group[Name='nomedogrupo']").length == 1)) {
campos que devem ser bloqueados para analistas
}
else{
campos que devem ser bloqueados para usuários
}
}
});
</script>
What could be causing the problem? I already checked and we are all included in the group correctly.