@jchicky wrote:
So if a user enters a number in the input box, the slider automatically moves its position to where that number is, and vice versa. If the user moves the slider, the input box updates to show the number that the slider is on.
To do this in a bi-directional way, I'd recommend that you set the default values of the slider and input box controls to a variable. I'd then update the variable on the OnChange property of both controls. The steps would be:
1 Set the OnChange property of the text input control to the formula here. dataValue is the name of the variable that we use.
UpdateContext({dataValue: Value(TextInput1.Text)})
2. Set the default property of the text input control to:
Text(dataValue)
3.Set the OnChange property of your slider control to the formula here.
UpdateContext({dataValue: Slider1.Value})
4. Set the default property of your slider control to:
Value(dataValue)
If you were to type 200 into the text input control with the maximum value of the slider control is set the 100, the slider control would 'coerce' dataValue down to 100. Therefore, this technique would prevent users from entering values outside the range of the slider control. PowerApps would not display an error message in this instance. It would simply correct the data to an acceptable value.