Hello
I have an edit form that I have a text box for the weather on
The idea is that the user presses the weather icon and the app will get the current weather and update the box
I am doing this using
Set(varLocation, Text(Location.Latitude)&","&Text(Location.Longitude));
UpdateContext({Weather: MSNWeather.CurrentWeather(varLocation, "Metric")});
Set(varCurrentDiaryEntry, Patch(varCurrentDiaryEntry, {Field_2: Weather.responses.weather.current.cap}));
This code is only invoked when the icon is clicked, but as soon as this exists, my screen no longer works
There are no errors
What is the problem?
I have also tried this on a button outside of the edit form
Paul