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
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (4,060)