If(And(CountRows(Filter(colProgAmendOption, Selection = "Yes" && Title = "Increase or decrease in Total Programme Credits")) = 0, Not(txtSugCredit_3.Text = txtSugCredit_4.Text)),
Set(showCreditsWarning, true), //Show error message
Set(showLoading, true); //Show loading screen
SubmitForm(frmAmmendment_); //Submit form
Set(gblCurrentForm, frmAmmendment_.LastSubmit); //Update variable which stores the current record information and updates it with the updated information
Set(showLoading, false) //Hide loading screen
)
The issue seems to be caused by the "Set(gblFormStatus, Blank());" since once removed I am able to save the record. This variable is used in the Default property of a data card in the form. However the field is not a required field on the app nor on SharePoint.
Data card Default property code
Coalesce(gblFormStatus,ThisItem.FormStatus)