locked
update sharepoint list using javascript RRS feed

  • Question

  • i have below requirement and i do not know how to write the javascript function to update in sharepoint list:

    Basic ui:

    Name:(Text box)

    Id:(dropdown box)

    Area interetested:(one checkbox)

    submit button

    when i click the above submit button it should update the list item with name,id,area interested. i do not know how to bind the dropdown box values and checkbox values using javascript also how to update the sharepoint list item


    Blitz

    Thursday, July 24, 2014 5:07 PM

Answers

  • You can use JSOM(ECMA script) to update the list items

    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/1e3ba3c8-9dd2-4bdb-80b7-ac21d26cf8f2/update-sharepoint-list-using-jquery?forum=sharepointcustomizationprevious

    http://blogs.msdn.com/b/sharepointdev/archive/2011/07/25/working-with-the-ecmascript-client-object-model-jsom-in-sharepoint-2010-part-4-nikhil-sachdeva.aspx

    Other option is you can  http://spservices.codeplex.com/  codeplex solution


    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

    • Proposed as answer by Hemendra Agrawal Friday, July 25, 2014 9:46 AM
    • Marked as answer by JasonGuo Friday, August 1, 2014 9:46 AM
    Thursday, July 24, 2014 9:22 PM
  • In addition, Have below link for your reference.

    Add/Update listitem using JQuery SPServices()

    Thanks.

    • Marked as answer by JasonGuo Friday, August 1, 2014 9:47 AM
    Friday, July 25, 2014 6:24 AM

All replies

  • You can use JSOM(ECMA script) to update the list items

    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/1e3ba3c8-9dd2-4bdb-80b7-ac21d26cf8f2/update-sharepoint-list-using-jquery?forum=sharepointcustomizationprevious

    http://blogs.msdn.com/b/sharepointdev/archive/2011/07/25/working-with-the-ecmascript-client-object-model-jsom-in-sharepoint-2010-part-4-nikhil-sachdeva.aspx

    Other option is you can  http://spservices.codeplex.com/  codeplex solution


    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

    • Proposed as answer by Hemendra Agrawal Friday, July 25, 2014 9:46 AM
    • Marked as answer by JasonGuo Friday, August 1, 2014 9:46 AM
    Thursday, July 24, 2014 9:22 PM
  • In addition, Have below link for your reference.

    Add/Update listitem using JQuery SPServices()

    Thanks.

    • Marked as answer by JasonGuo Friday, August 1, 2014 9:47 AM
    Friday, July 25, 2014 6:24 AM