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

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?

share|improve this question
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 Dec 2 '13 at 10:44
using SharePoint 2010 – Justin Dec 21 '13 at 16:10

This gives a few examples of using JS to create, update and delete SharePoint list items.

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

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.