Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Append user to People&Group Field using jQuery

$
0
0

Hi, 

We have an event tracking functionality. I would need to capture the attendees of the event on click of a button. On button click, the current logged in user should be added to the attendees field in the events list. 

I am able to update the value, but on every update it overrides the existing user. I would insted want it to append the current user to the existing users in the Attendees column. Please find my code below,

$().SPServices({
        operation: "UpdateListItems",
        async: false,
        listName: "Upcoming Events",
        batchCmd: "Update",
        ID: 1,
        valuepairs: [["ParticipantsPicker", FullUser]],
        completefunc: function (xData, Status) {
               }
});

Could anyone suggest me an approach to append the value, instead of overwriting.


Raj


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>