Hey guys, I have an issue I'm trying to work through but I cant seem to solve it. I have a SharePoint List that is broken into 6 separate screens based on sections, I.e. Section A, B, C.... When the form is created from the 'New' Button, all the subsequent forms are set to FormMode.New, and when the user is editing a previous entry, the forms are all FormMode.Edit so that I can utilize the 'Item' Property. On the last page of the form, I need to submit everything, So I check what mode the form is in, and then patch the form to my SP List as follows:
If(IsFormInvalid = false,
If(IRFormSectionG_Form.Mode = FormMode.New,
Patch(
Collection,
Defaults(Collection),
IRFormSectionA_Form.Updates,
IRFormSectionB_Form.Updates,
IRFormSectionC_Form.Updates,
IRFormSectionD_Form.Updates,
IRFormSectionEF_Form.Updates,
IRFormSectionG_Form.Updates
),
Patch(
Collection,
QueryFilter,
IRFormSectionA_Form.Updates,
IRFormSectionB_Form.Updates,
IRFormSectionC_Form.Updates,
IRFormSectionD_Form.Updates,
IRFormSectionEF_Form.Updates,
IRFormSectionG_Form.Updates
)
)
);
I've verified that the QueryFilter, I.e. the item from the SP list that I want to update is the correct one, but for whatever reason, when the form is in edit mode and I submit, nothing happens. No new records are added or updated but according to the documentation, this should be correct. Any thoughts?