Greetings,
I have a SearchInput box and a label. The intent is to pull in the weather for a selected location based on the user either typing in City, St or toggling to get Lat/Long of their location.
The SearchInput default is:
If(tglLatLongFormNew.Value = true, CurrentLocation, "")
For the label control, the text property is:
If(frmAddNew.Mode = FormMode.Edit, Parent.Default, "Current temp: " & w2.responses.weather.current.temp & w2.units.temperature & "
"& " Wind Speed: " &w2.responses.weather.current.windSpd & w2.units.speed &"
"& " Conditions: " &w2.responses.weather.current.cap &"
"& " Forecast High: "&w3.responses.daily.tempHi & w2.units.temperature&"
"& " Forecast High: "&w3.responses.daily.tempLo & w2.units.temperature)
I have a cancel (X) icon. Upon OnSelect, I would like the text in the SearchInput to be deleted or Reset AND I would like the weather specific details to be reset.
So, if a user enters Seattle, WA in the SearchInput control and clicks the search icon, the result would be:
Current temp: 37°F
Wind Speed: 3mph
Conditions: Light Rain
Forecast High: 43°F
Forecast High: 33°F
If they click the (X) icon, I would ultimately want the label to be reset to the following:
Current temp:
Wind Speed:
Conditions:
Forecast High:
Forecast High:
Any suggestions?