I have a custom form on a list that should load gallery items from another list when the form is opened.
The items from the supporting list are gathered with a ClearCollect() statement in the OnEdit and OnView properties as I do not need to gather any items when the form is new.
The clear collect doesnt seem to run even when there are items available to be gathered.
I have put in a refresh button with the exact same code as the OnEdit and OnView, and this pulls in the items correctly.
If I open the form, close it, and reopen it the items are pulled in correctly.
I have tried placing the clearcollect statement in onvisible and onstart, and even to run when a timer starts but the same thing happens. Nothing is pulled in at the start and the form has to be closed and re-opened without refreshing the browser, or you have to click the refresh button.
This feels like such a simple thing but it is driving me crazy, so turning to you guys for some ideas. I can provide screenshots if needed!