I have a list of columns which i need to display to certain set of users.I have followed this blog
and i am not able to achieve the use case.I am new to SPServices
http://sharepointnadeem.blogspot.com/2011/09/hide-sharepoint-list-field-based-on.html#comment-form
Problem
The code mentioned below always gives an object
how to get the column name from the list that we want to hide.
var feedbackField = $("[title=Title]");
when i use th ecode mentioned below to hide i am getting the property is not supported on object.Please help me to resolve the issue.
<script language="javascript" src="/jQueryLibraries/jquery-1.7.min.js" type="text/javascript"></script><script src="/jQueryLibraries/jquery.SPServices-0.7.0.min.js" type="text/javascript"></script><script language="javascript" type="text/javascript">
$(document).ready(function()
{
$().SPServices({
});</script>
and i am not able to achieve the use case.I am new to SPServices
http://sharepointnadeem.blogspot.com/2011/09/hide-sharepoint-list-field-based-on.html#comment-form
Problem
The code mentioned below always gives an object
how to get the column name from the list that we want to hide.
var feedbackField = $("[title=Title]");
when i use th ecode mentioned below to hide i am getting the property is not supported on object.Please help me to resolve the issue.
feedbackField.parent().parent().parent().hide();
Script on List NewForm.aspx<script language="javascript" src="/jQueryLibraries/jquery-1.7.min.js" type="text/javascript"></script><script src="/jQueryLibraries/jquery.SPServices-0.7.0.min.js" type="text/javascript"></script><script language="javascript" type="text/javascript">
$(document).ready(function()
{
$().SPServices({
operation: "GetGroupCollectionFromUser",
userLoginName: $().SPServices.SPGetCurrentUser(),
async: false,
completefunc: function (xData, Status) {
var xml = xData.responseXML.xml;
alert(xml);
alert(xml.search('PAGMembers'));
alert($(xData.responseXML).find("Group[Name='PAGMembers']").length);
if($(xData.responseXML).find("Group[Name='PAGMembers']").length == 1)
{
alert($().SPServices.SPGetCurrentUser());
alert($("input[title=Issue]"));
alert($("input[title=Issue].parent()"));
var feedbackField = $("input[title=Title]");
feedbackField.parent().parent().parent().hide();
}
}
});});</script>