I want to get list item fields where its the last item that the same user created. Then I want to populate the newform.aspx with some of these items.
I'm mainly stuck with the query and how to write it in the newform.aspx, I want to utlise jquery (client side).. I've added :
$(document).ready(function() {
var userName = $().SPServices.SPGetCurrentUser({
fieldName: "Name",debug: false
});
$("input[title='Customer Name']").val(userName);
$("input[title='Customer Name'] ").attr('readonly', true);
});
code
Hope someone can help. Thanks