cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
djreyes1110
Helper V
Helper V

undefinedOnSuccess with 2 Success Screen base from choices

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!

20 REPLIES 20

Thank you!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,601)