Hi all,
I'm having an issue with my app as follows.
My app is a form of logbook to record when a person visits an electrical substation in a SharePoint list.
The main column in the SharePoint list is a Choice column called "Substation". When I first created the app, in the edit gallery, the "Items" formula for the Substation Combo Box was set to Choices('Substation Logbook'.Substation) which worked fine.
However, I want to make the app a bit smarter and list the choices in the combo box drop down by distance from the user. I've achieved this by collecting a list of all available substations with their latitude and longitudes, and adding an additional column to the collection to calculate the distance. The collection is called Dist.
I then set the Items under the Substation Combo Box to
Distinct(SortByColumns(Dist,"Distance"),Site)
where Distance is the distance from the user to the substation and Site is the substation name.
This achieved the desired outcome of listing all the substations in order of distance, but now when I fill out the form and hit the SubmitForm button, all the form data copies into SharePoint except for the Substation name, it just appears blank.
I've tried replacing the Combo Box with a drop down input but I still get the same result.
Could anybody please help?
Thanks in advance!