I need to fetch the SharePoint field values using SPServices in a EditForm.aspx in my SP 2010 Listform. As far as I know, some examples, one of them - I tried below - used to fetch the current logged in user. I didn't see, how to get the field values from the existing list item using this API.
I don't have Visual Studio so, need to depend a lot on SP D 2010 and content editor web parts.
<script language="javascript"
src="/project/EOVHYSZ1/EASAssetsLib/prototype.js"
type="text/javascript"></script>
<script language="javascript"
src="/project/EOVHYSZ1/EASAssetsLib/jquery-1.6.0.min.js"
type="text/javascript"></script>
<script language="javascript"
src="/project/EOVHYSZ1/EASAssetsLib/SPUtility.js"
type="text/javascript"></script>
<script language="javascript"
src="/project/EOVHYSZ1/EASAssetsLib/jquery.SPServices-
2014.01.min.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
var CSGANCHORNames= $().SPServices.SPGetCurrentUser(); /
alert(CSGANCHORNames);
ready-- best practice is to always useexecuteFuncorexecuteOrDelayUntilScriptLoaded; here is a good answer related to that: http://sharepoint.stackexchange.com/questions/58503/sp-sod-how-to-use-correctly – John-M Oct 29 '15 at 13:02