I am trying to do something very simple with the Set function. I am setting a global variable called SelectedRecord to a Record in a gallery and then setting the Item property of an edit form to SelectedRecord. I have 2 galleries and when the user selects the record it sets the variable to the selected record. The galleries use the same edit form when selected.
It works as intended on the first gallery but on the second, the variable doesn't seem to update to the new selected record. It is updating the fields in the form to the last selected record from the first gallery. Any ideas or is it just a bug?
Here is the code I am using:
Set(SelectedRecord, ThisItem); EditForm(TitleForm); EditForm(SeeForm); EditForm(EngageForm); EditForm(ChooseForm); EditForm(AchieveForm); Navigate(ChangeEditScreen, None)