4

Is it possible to create a new item in a library and default that to a txt file or XML and using JavaScript or jquery insert data from a list into that file?

For example from a page click a button that fires JavaScript and creates new item in library...that item is based on blank text file, query a list for values and write them in the document?

2
  • 1
    Yes this is possible and it is a lot more code than I could demonstrate for all versions. Therefore which version of SharePoint are you using? Please state 2010/2013/365.
    – Hugh Wood
    Commented Dec 2, 2013 at 10:44
  • using SharePoint 2010
    – Justin
    Commented Dec 21, 2013 at 16:10

1 Answer 1

1

This gives a few examples of using JS to create, update and delete SharePoint list items. http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx

It's working with lists, but I would imagine working with document libraries would be similar.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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