Hi,
Anyone knows if there are any way to feed back to the user that the input value is invalid?
For example, I am trying to write an app that notify the user when a device battery level drops below a certain percentage and would like to restrict his/her inputs to 0 to 99.
Tried throwing exception, but instead of getting a message displayed to the user, I got an “Error: Connection failed.”.
section “Battery Level” {
input “battLevel”, “number”, title:“Battery level”
}
Any way to specify a range to the above? e.g. input “battLevel”, “number”, title: “Battery level”, max:99