SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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);



Hope someone can help. Thanks

share|improve this question
up vote 1 down vote accepted

Have you looked at the $().SPServices.SPGetLastItemId function in SPServices? It will return the ID of the last item a user created in a list. That sounds like what you are after.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.