Question..... and i think im close....
I have a field called Temperature (number field in sharepoint). I want to put a range that the users can enter into it. I also added a label. i added this code and it works EXCEPT the Reset part.
If(Value(Temperature)<90 || Value(Temperature)>105,
UpdateContext({ShowErrorMsg: true}); Reset(Temperature),
UpdateContext({ShowErrorMsg: false})
)
i want to put this code on the submit button so that the user can NOT submit if the user is out of range.
i done understand why im getting an error on the Reset part of this. I get a "Invalid argument type (Number), expecting a control value instead." Not sure what that means. This is the only part of my code that is giving me an error. What am i doing wrong here?