I'm a total beginner in Power Apps, so bear with me. I've successfully created a multi-screen form. I've created a status button on the home screen of the app. The button's text updates according to the status of the record. I want to direct the user to the appropriate form/screen, based on the text/status of the button. Can this be done with one button control?
Example:
If button reads "Pending Disposition" navigate to the "Disposition Form",
If button reads "Pending Approval" navigate to the "Approval Form"
Current State: Button Property, ON SELECT:
If(
Text(Button4) = "Pending Disposition",
ResetForm(HoldForm1);
ResetForm(HoldForm2);
ResetForm(DispositionForm);
ResetForm(ApprovalForm);
Set(
varFormData,
varIdea
);
Navigate(
'Disposition Screen',
ScreenTransition.Fade
)
)
Thank you so much! That worked beautifully!
Use nested if statements like this:
If(
Self.Text = "Home",
Navigate(HomeScreen),
If(
Self.Text = "Clock In",
Navigate(ClockIn)
)
);
Or use a switch like this:
Switch(
Self.Text,
"Home",
Navigate(HomeScreen),
"Clock In",
Navigate(ClockIn)
)
WarrenBelz
146,776
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,093
Most Valuable Professional