Edit -
@el5 - applying something like this on the OnSuccess property of the Edit Form control works when the Form is in New Mode but not in Edit Mode:
If(
Slider1.Value = 27,
Navigate(Screen1)
)
On your Submit Form operation, consider using a Context Variable to capture the Slider Value prior to the Form being submitted:
UpdateContext({ctx_slider_value: Slider1.Value});
And then on the OnSuccess property, use:
If(
ctx_slider_value = 27,
Navigate(Screen1)
);
UpdateContext({ctx_slider_value: 0})