web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to navigate using ...
Power Apps
Unanswered

How to navigate using slider?

(0) ShareShare
ReportReport
Posted on by 302

I have a slider, inside a text box on a form. On the forms on success is navigation to other screens. I need it to only navigate to the next screen if the slider is at 27. I tried Slider1.Value = 27 but it doesn't seem to work. Is there a way to do this?

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    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})

     

  • el5 Profile Picture
    302 on at
    If(
        !IsBlank(Intake) And Intake.'Current Stage' = "Project Estimate Creation" And Slider1.Value = 27,
        //Set(MoveStageWait, MoveIntakeStage.Run(Intake.'Intake Form_M'));
        Patch(
            'Intake Form_MS',
            Intake,
            {
                'Current Stage': LookUp(
                    AppScreens,
                    ID = LookUp(
                        AppScreens,
                        Stage_Name = Intake.'Current Stage'
                    ).ID + 1
                ).Stage_Name
            }
        );
        Navigate('PER Screen'),
        ResetForm('PE Form');
        UpdateContext({LoadingFormSpinner: false})
    );
     
    this is what i have, but it's just resetting instead of navigating when it hits 27. Just so you know 27 is also the max value.
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @el5 - I just edited my post. See if capturing the value using a Local Context Variable will help.

  • el5 Profile Picture
    302 on at

    sorry, does this go on the value of the slider, the onselect of the submit button or the onsuccess of the form? 

    UpdateContext({ctx_slider_value: Slider1.Value});
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @el5 - just so I am clear, are you not using the SubmitForm function at all, and instead using the Patch function?

     

    Or is that Patch function being run on the OnSuccess property of the Edit Form?

  • el5 Profile Picture
    302 on at

    onsuccess

     

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @el5 - that did not answer my question.

     

    I will rephase, are you using the SubmitForm function, and then running a Patch function on the OnSuccess property of the Edit Form?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard