cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Abhijith123
Helper I
Helper I

Radio button for navigating between two screens

I am using one radio button named "Summary" and "Facility" So default is summary screen so when I select facility it will navigate to facility screen but selection will blink in facility radio button but again selected will be shown as summary. So when I am in facility screen and when I click on summary radio button it will navigate but same happens as before that summary will blink and facility radio button will be shown as selected.

Code Used:

If(
Dash.Selected.Value="Summary",
Navigate('Coding Dashboard Screen'),
If(Dash.Selected.Value="Facility",
Navigate('Dashboard Screen_1')))

Same used in One more Screen I don't know what's the error can you help me out.

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @Abhijith123 ,

 

Please try

 

Set the the Dash's 

 

Items

 

["summary","facility"]

 

 

OnChange

 

If(
    dash.Selected.Value = "summary",
    Navigate('Coding Dashboard Screen'),
    dash.Selected.Value = "facility",
    Navigate('Dashboard Screen_1')
);
Reset(Self)

 

 

Default

 

Switch(
    Parent.Name,
    "Dashboard Screen_1",
    "facility",
    "Coding Dashboard Screen",
    "summary"
)

 

vbofengmsft_0-1655967601478.png

 

 

Best Regards,

Bof

 

View solution in original post

4 REPLIES 4
ArchitectMadhan
Super User
Super User

Hi @Abhijith123 m

 

Please try the below Power FX in Visible property of the Screens.

In Coding Dashboard Screen:
============================
Visible = If(Dash.Selected.Value="Summary",true, false)

In Dashboard Screen_1:
========================
Visible = If(Dash.Selected.Value="Facility", true, false)

 

Try using tabs instead of Radio Button:

https://www.c-sharpcorner.com/blogs/how-to-create-tabs-in-powerapps

- Architect Madhan

Please click the "Accept as Solution" button and give thumbs up, if it is helpful to you.

Still its having the same error

v-bofeng-msft
Community Support
Community Support

Hi @Abhijith123 ,

 

Please try

 

Set the the Dash's 

 

Items

 

["summary","facility"]

 

 

OnChange

 

If(
    dash.Selected.Value = "summary",
    Navigate('Coding Dashboard Screen'),
    dash.Selected.Value = "facility",
    Navigate('Dashboard Screen_1')
);
Reset(Self)

 

 

Default

 

Switch(
    Parent.Name,
    "Dashboard Screen_1",
    "facility",
    "Coding Dashboard Screen",
    "summary"
)

 

vbofengmsft_0-1655967601478.png

 

 

Best Regards,

Bof

 

When I am using inside a container in that screen It's showing 'Name' isn't recognised therefore its having an error and when I am using it outside the container in same screen  it's working fine.

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

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.

<
Users online (4,813)