I need to create a "copy item" on a typical auto-generated three-form data source (list, detail, edit forms) connected to a SP list.
The Process is as following:
1) User has selected a certain item, and is now on the DetailForm.
2) User click a "Copy Item" icon
3) App copies over the fields values from the selected old item to the newly created one.(Create new and not overwrite the current one)
4) App shows the EditForm to edit the newly created item (form would be in FormMode.New).
here is the on select formula I used :
NewForm(Form2); Form2.Mode = FormMode.New; Navigate(Edit, ScreenTransition.None)
but actually it is not working it is just give me a new blank form not coping any field.
Hi @gme-eg ,
This is because that you have used NewForm function and when in new form mode, Form control will only create a new item. Please use below formula instead:
In the OnSelect property of the copy button:
Then set the Item property of Form2 to:
Thanks a lot for your support I tried but I got error there is something not clear for me what do you mean by or should I put the data cards of my form that I want to copy it.
Please find below is a screenshot from my details screen:
Please check if this thread will help you to resolve your issue?
Check out the on demand sessions that are available now!
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Features releasing from October 2020 through March 2021
Check out the Power Platform Community Highlights