How to add an item to a Sharepoint list programmatically via a URL only

I wish to use a URL which will automatically add a new item to a SharePoint list. The URL will contain the new item for the list, eg

http://sharepointaddress/KMlist/newform.aspx?KM=KM12345

In this instance, KM is a column in the list KMlist.  Is there a way to make KM12345 add to the KM column in the list transparently?  I do not want any input from the user at all. I don't want them to have to click on Submit. Even better if they don't even see the new item form.

I have tried using InfoPath and adding a QueryString webpart which auto populates the KM field from the KM parameter in the URL. Then I was trying to find a way to auto submit the form (which I have not quite worked out yet).  But this even seems a bit "clunky" and Im sure Im over complicating this... As mentioned before, I do not want the user to have any further action.. I just want them to click on the link and the list will automatically update.

Is this possible even? 


  • Edited by Mark Sloan 15 hours 43 minutes ago correcting grammar
June 28th, 2015 11:49am

Hi,

Please check this. You can add the javascript here

https://social.technet.microsoft.com/Forums/office/en-US/326c7e18-291b-4acf-9622-9689bf6f2a96/how-to-change-the-url-of-add-new-item-of-a-particular-list-in-sharepoint-2013?forum=sharepointdevelopment

Free Windows Admin Tool Kit Click here and download it now
June 28th, 2015 10:00pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics