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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Under review by Community Managers

Under review

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

undefinedOnSuccess with 2 Success Screen base from choices

Posted on by 88

Hello, 

I am using SharePoint List as my datasource and I have a column named Status with 2 selection, returned and borrowed. 

 

If the user selected Borrowed it should navigate to SuccessScreen and if its returned navigate to SuccessScreen1. 

 

I tried this formula below and both is routing to SuccessScreen1. 


If(
DataCardValue2.Selected.Value = "Borrowed",
Navigate(SuccessScreen),
DataCardValue1.Selected.Value = "Returned",
Navigate(SuccessScreen1)
)

 

Also tried this but I am getting an error which I know my function is incorrect.

 

Set(
formtype,
"Edit";
Set(
selectedItem,
DataCardValue2.Selected.Value = "Borrowed"
)
);
Navigate(SuccessScreen);
Set(
"Detail",
DetailScreen1;
Set(
selectedItem,
DataCardValue1.Selected.Value = "Returned"
);
Navigate(SuccessScreen1)

 

Thank you so much for your help!

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 419

#2
WarrenBelz Profile Picture

WarrenBelz 397 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 345 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics