Step 1: Ensure varEventLocation Updates Dynamically
Right now, varEventLocation is only being set when loading the form. It does not capture changes when users select/deselect items. To fix this, update the OnChange property of the ComboBox:
✅ This ensures varEventLocation always reflects the latest selections.
Step 2: Modify the Save (Patch()) Formula
Your Patch() function is trying to save either varEventLocation or the ComboBox selection, but varEventLocation may not be up-to-date. Instead, modify it like this:
✅ This directly uses cmbNewFormLocation.SelectedItems instead of varEventLocation.
✅ The Left(..., Len(...)-1) part removes the trailing comma from the final string.
Step 3: Remove varEventLocation from Form Population
Since we are now handling selections directly from the ComboBox, we no longer need to store selections in varEventLocation. Instead, update the DefaultSelectedItems property of cmbNewFormLocation:
✅ This means selections are taken directly from SharePoint, avoiding unnecessary variables.
Final Solution Summary
✔ OnChange of ComboBox:
✔ DefaultSelectedItems of ComboBox:
✔ Save Button (Patch())