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 / Navigate to screens de...
Power Apps
Unanswered

Navigate to screens depending on radio button selection

(0) ShareShare
ReportReport
Posted on by 30

Hi;

 

I am trying to build into an inspection app a second screen to say to not use the equipment if any of the radio buttons are "N" when submitted 

JMBARNES_0-1686559082061.png

So; once all radio's have been chosen, the user clicks "submit" which I have to submit the form and navigate back to the home page at the minute, but if any selections are "N" I would like it to go to Screen2 to say to not proceed any further with the equipment.

I have tried IF commands and Switch, but I am not sure if I have configured them incorrectly as upon selection, it navigates to the home screen

 

Thanks in advance

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JMBARNES ,

     

    Please try this:

    vxiaochenmsft_0-1686560062441.png

    If(CountRows(Filter(ForAll(Gallery1.AllItems.Radio2,Radio2.Selected.Value),Value="N"))>0,Navigate(Screen2))

     

    Best Regards,

    Wearsky

  • JMBARNES Profile Picture
    30 on at

    I will give it a try thank you.

    Would the solution you've shown be only for the radio2 rather than if any of 10 radios are N?

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JMBARNES ,

     

    In my sample, the radio control is inside the gallery control.

    If your radio controls are not in the gallery, please try this:

    vxiaochenmsft_0-1686560527423.png

    If(Radio2_1.Selected.Value="N"||Radio2_2.Selected.Value="N"||Radio2_3.Selected.Value="N",Navigate(Screen2))

     

    Best Regards,

    Wearsky

  • JMBARNES Profile Picture
    30 on at

    JMBARNES_1-1686561999879.png

     

    I have input the formula as above, and when the button is pressed; there is no navigation just the submit command; yet when I add in an else command to navigate to the original screen (screen1), on pressing the button it navigates to screen1.

    Is the issue the order of my formula?

     

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JMBARNES ,

     

    1\ Did you select "N" before submitting the form?

    2\ Whether there are spaces around the letter N?

    vxiaochenmsft_0-1686562882597.png

    vxiaochenmsft_1-1686562904494.png

     

    Best Regards,

    Wearsky

  • timl Profile Picture
    37,262 Super User 2026 Season 1 on at

    Hi @JMBARNES 

    The correct way to do this is to call only SubmitForm in your button.

    SubmitForm(SharePointForm1)

    You would then add the call to Navigate in the OnSuccess property of SharePointForm1. The reason for this is to avoid navigating to a different screen in the event of an error.

    If(SharePointForm1.LastSubmit.FluidLeaks = "N" || SharePointForm1.LastSubmit.Tires = "N",
     Navigate(Screen2),
     Navigate(Screen1)
    )

    Notice how you'd refer to the LastSubmit property here. You would need to do this because following a call a SumbitForm, the datacards will reset themselves.

  • JMBARNES Profile Picture
    30 on at

    Thanks; I thought it might be something along those lines as to why it wasn't working; I have tried the formula you gave, but are met with this:

    JMBARNES_0-1686565972409.png

     

  • JMBARNES Profile Picture
    30 on at

    I select inputs for all the inspections; then submit the form

    No spaces around the N letter

  • timl Profile Picture
    37,262 Super User 2026 Season 1 on at

    @JMBARNES 

    If those are SharePoint lookup columns, the Id or Value properties will return the text value. The Intellisense in the editor should hopefully guide you to the correct syntax.

    SharePointForm1.LastSubmit.FluidLeaks.Id = "N"

     

  • JMBARNES Profile Picture
    30 on at

    within the onsuccess field, it was pre-populated with reset and requesthide as seen with your provided formula;

    JMBARNES_0-1686567912631.png

    When running this and setting all answers to "N"; I am navigated to screen 1 after submitting

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard