Hi @Mstace ,
Do you want to add a new form entry and retain certain data from previous submission when you press the additional submit button?
Based on the needs that you mentioned, I have made a test on my side, please take a try with the following workaround:
Add a "Additional Submit" button in your canvas app. Set the OnSelect property to following:
SubmitForm(EditForm1);
NewForm(EditForm1);
Set(IsDuplicate, true)
Set the OnSuccess property of the Edit form to following:
Set(LastSubmitted, EditForm1.LastSubmit)
Set the OnSelect property of the "Submit" button (original submit button) to following:
SubmitForm(EditForm1);
Set(IsDuplicate, false);
Back()
Within your EditForm1, you could set default value for these certain fields where you want to retain data from previous submission through the LastSubmitted variable. E.G. Set the Default property of the Text Input Box inside the Text field data card to following:
If(
EditForm1.Mode = FormMode.New,
If(
IsDuplicate = true && !IsBlank(LastSubmitted),
LastSubmitted.TextField1
),
Parent.Default
)
Please consider take a try with above solution, then check if the issue is solved.
Best regards,