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 to ano...
Power Apps
Answered

How to navigate to another screen with condition

(0) ShareShare
ReportReport
Posted on by 189

Hi, 

I've got a problem with my submit button that I cannot figure out.

I have a Radio button to choose the answer 

Approve and Denine.

 

If user choose Denine and clicks Submit button> Navigate (sc_endPage)

But if the user chooses Approve and clicks Submit, I would like to check empID in SharePoint list "tbl_dataHistory" first.

If it's true Navigate(sc_OldHistory) if it isn't Navigate(sc_NewHistory).

This is the formula that I have a problem with because it's not working. 

 

Do you guys have any suggestions?

 

Thank you.

 

If(
 rd_Choice.Selected.Value = "Denine",
 Navigate(sc_endPage),
 If(
 rd_Choice.Selected.Value = "Approve",LookUp(
 tbl_dataHistory,
 empID = lb_value_PerID.Text,
 Navigate(sc_OldHistory)
 ),Navigate(sc_NewHistory)
 )
)

 

 

Categories:
  • Verified answer
    AaronKnox Profile Picture
    514 Super User 2024 Season 1 on at

    Wrapping the LookUp() in an IsBlank() will return true/false:

     

    If(
     rd_Choice.Selected.Value = "Denine",
     Navigate(sc_endPage),
     rd_Choice.Selected.Value = "Approve",
     If(
     IsBlank(
     LookUp(tbl_dataHistory,empIDNUM = lb_value_PerID.Text)
     ),
     Navigate(sc_NewHistory),
     Navigate(sc_OldHistory)
     )
    )

     

     

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @infinitepp 

    If(rd_Choice.Selected.Value = "Denine", Navigate(sc_endPage),
     rd_Choice.Srd_Choice.Selected.Value = "Approve" && 
     !IsBlank( LookUp(
     tbl_dataHistory,empID = lb_value_PerID.Text
     )
     ), Navigate(sc_OldHistory),
     Navigate(sc_NewHistory)
    )
  • infinitepp Profile Picture
    189 on at

    @Drrickryp @AaronKnox Thank you for you guys. Both solutions are work!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard