I have creating a handover form in PowerApps using a SharePoint list as data collection point, I would like when a new form is selected information from the last submitted form is auto populated into data card values.
e.g. if the last form has text in the 'Safety Information'
DataCardValue
then it should be copied into the new form, they also need to be able to edit the field if needed.
I have tried the following in the DataCard
and the DataCardValue
default sections.
If(!IsBlank(EditForm1.LastSubmit.ID), EditForm1.LastSubmit.'Safety Information',ThisItem.'Safety Information')
I would expect that just the DataCard
'Safety Information'
(text field) to be populated with the last submitted data in that field but with the code it will set the form back to the last submit form.
In the SharePoint list it will create a new row for the new form but no information has been copied across from the last form.