cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
esjimenezp
Advocate II
Advocate II

Navigate for the specific Screen based on the selection from Gallery

Hi Community,

 

I have the next issue, now, currently we have 5 different screens with specific fields on each one, the user select the item from the Gallery and based on the value of the item it tries to direct for the specific screen, but not works well.

SelectItem.gif

This is the code I used into the Gallery

Set(varRecordProject, ThisItem); 
If(title_cmbStageRequest.Text = "2. Evaluate, Select, & Prioritize", ViewForm('Stage 2'), Navigate('Stage 2. Evaluate, Select, & Prioritize',ScreenTransition.Fade), (title_cmbStageRequest.Text = "3. Balance Portfolio"), ViewForm('Stage 3'), Navigate('Stage 3. Balance Portfolio'))

Then I used the next code for the Next button

Select(Parent);
If(title_cmbStageRequest.Text = "2. Evaluate, Select, & Prioritize", Navigate('Stage 2. Evaluate, Select, & Prioritize',ScreenTransition.Fade), (title_cmbStageRequest.Text = "3. Balance Portfolio"), Navigate('Stage 3. Balance Portfolio',ScreenTransition.Fade))

Any help I really appreciate it, thanks in advance.

 

Kind regards 👋

1 ACCEPTED SOLUTION

Accepted Solutions
EddieE
Solution Sage
Solution Sage

@esjimenezp 

Try this

Set(varRecordProject, ThisItem); 
Switch(
   title_cmbStageRequest.Text,
      "2. Evaluate, Select, & Prioritize",
         ViewForm('Stage 2'); 
         Navigate('Stage 2. Evaluate, Select, & Prioritize',ScreenTransition.Fade),      
      "3. Balance Portfolio", 
         ViewForm('Stage 3');
         Navigate('Stage 3. Balance Portfolio')
)

 

View solution in original post

2 REPLIES 2
EddieE
Solution Sage
Solution Sage

@esjimenezp 

Try this

Set(varRecordProject, ThisItem); 
Switch(
   title_cmbStageRequest.Text,
      "2. Evaluate, Select, & Prioritize",
         ViewForm('Stage 2'); 
         Navigate('Stage 2. Evaluate, Select, & Prioritize',ScreenTransition.Fade),      
      "3. Balance Portfolio", 
         ViewForm('Stage 3');
         Navigate('Stage 3. Balance Portfolio')
)

 

it works @EddieE I really appreciate your help, thanks 😎👍

 

Kind regards 👋

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,374)