Hi,
I have been trying to add a column to a list and used the below code with the help from this forum. But when the column is created it not added to the default view of the list. Can any one help me to resolve the same please.
newFields='<Fields><Method ID="1"><Field Name="Region" DisplayName="Region" Type="Lookup" List="{F3EC84C6-2317-4A8F-9BA0-2AFA0E166B49}"/></Method></Fields>';
$().SPServices({
operation: "UpdateList",
listName: "TestList",
listProperties:"",
updateFields: "",
newFields: newFields,
deleteFields: "",
listVersion: "",
async: false,
completefunc: function (xData, Status){}
});
I have been trying to add a column to a list and used the below code with the help from this forum. But when the column is created it not added to the default view of the list. Can any one help me to resolve the same please.
newFields='<Fields><Method ID="1"><Field Name="Region" DisplayName="Region" Type="Lookup" List="{F3EC84C6-2317-4A8F-9BA0-2AFA0E166B49}"/></Method></Fields>';
$().SPServices({
operation: "UpdateList",
listName: "TestList",
listProperties:"",
updateFields: "",
newFields: newFields,
deleteFields: "",
listVersion: "",
async: false,
completefunc: function (xData, Status){}
});