0

I have records in my database and when viewing a record, I wanted to be able to have a button that would create a new record (new ID number) with the same data that was in the record I chose to create a new one off of. So a user wouldn't have to re-type all of the data in if they would like to change one thing.

So essentially I want to be able to clone a item into a new record.

Any help would be appreciated

Amal Hashim
  • 28,306
  • 5
  • 31
  • 61
Matt Ludwig
  • 543
  • 7
  • 14
  • 26

1 Answers1

2

You can do this with a little bit of custom code.

The ideal solution will be either to place a custom action in the Item Context Menu or in the Ribbon. Then clicking that will do the copy of the current selected item and opens up the edit form of the newly created item.

http://sharepointx-men.com/2013/03/13/part-ii-create-new-list-item-by-copy-existing-list-item-and-then-edit-the-newly-created-list-item/

If you don't want this method, then you can use JSOM to get the currently selected item. Then from client side you can create a new item and open up the edit form using SP.UI.Dialog or simply redirecting user to that page.

Amal Hashim
  • 28,306
  • 5
  • 31
  • 61