This project has moved and is read-only. For the latest updates, please go here.

Append user to People&Group Field

Jul 25, 2013 at 6:50 AM

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,
        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.
Jul 26, 2013 at 12:34 AM
There is not Append option to UpdateListItems so your update (valuepairs) needs to be all inclusive. Meaning include existing and new values.


Sent from mobile device.