I have an edit form with a hidden data card "Approval Status" with a text box value that changes depending on whether a user selects "Save Progress" or "Submit for Approval". This works when the user submits the form for the first time, but when the user goes to generate the form for the next step, 2 extra rows are being submitted that contain only the approval status' "Pending" and "Temp", (the 2 approval status that are swapped between depending on the button clicked on the form). Why are these extra rows being submitted?
Save Progress OnSelect():
UpdateContext({tempsave:1}) ; SubmitForm(SummaryFormLCG1) ; SubmitForm(PlanningFormLCG1) ; SubmitForm(FinancialsFormLCG1)
Submit for Approval OnSelect():
UpdateContext({tempsave:2}) ; SubmitForm(SummaryFormLCG1) ; SubmitForm(PlanningFormLCG1) ; SubmitForm(FinancialsFormLCG1)
Approval Status Default:
If(tempsave = 1, "Temp", "Pending")