I have two people picker site columns(Accountant and Manager) on newform.aspx page, I am using the following SPServices code to default current logged in user to Accountant field and it is working great, But it is also defaulting in Manager field, which I don't want. Any idea? or is there any other alternate way to do it?
$(document).ready(function(){
var userName = $().SPServices.SPGetCurrentUser({
fieldName: "Title"
});
$("textarea[title='People Picker']").val(userName);
$("div[title='People Picker']").text(userName);
});
Thanks,
John