List or library component - Deleting items

Hello,

I have a List or Library component on my form. The data source is connected to another list where i am getting the data. When i choose an item on my form and click the delete button, the item gets deleted from the list where my data source is connected. Is there any possible way that the item gets deleted from that data source and is also created on the list where my plumsail form is?

Thank you, Marek

Hey @Marek,

You can do this with some custom JS. Make a new list item based on the info from the deleted one and push that new item into your target list.

Here's how to handle get the info of a deleted item: List or Library control — SharePoint forms
Here's how to create a new item: PnPjs Library — SharePoint forms

Let me know if this helps.

Hey,

Thank you for this. I see what I can.do.