web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Switch button doesn`t ...
Power Apps
Answered

Switch button doesn`t work with form dropdown list

(0) ShareShare
ReportReport
Posted on by 24

Hi All,

I'm having issue with the "Switch" feature. I want that if I select one of the options from the list, navigate to the specific screen I need. But it doesn't work. If I using simple dropdown list then yes but when I am using list from "Form" (connected to Sharepoint list) then not. Maybe I'm miss something. The formula is: 

OnSelect:

Switch(DataCardValue4_1.Selected.Value;
"Line 1";Navigate(Line1);
"Line 2";Navigate(Line2and3);
"Line 3";Navigate(Line2and3);
"Line 4";Navigate(Line4)
)

 

The same effect with "IF"

 

If(DataCardValue4_1.Selected.Value="Line 1";Navigate(Line1);
If(DataCardValue4_1.Selected.Value="Line 2";Navigate(Line2and3);
If(DataCardValue4_1.Selected.Value="Line 3";Navigate(Line2and3);
If(DataCardValue4_1.Selected.Value="Line 4";Navigate(Line4)
))))

When I am not using data from the Form both of them working

2022-01-25 (1).png
Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Ny8C 

    What is the DefaultMode of the Form and the Item property of the form?

     

    If the form is in New mode by default, you should not see the problems you are.  If it is in Edit mode, then you need to supply a valid record for the Item property of the Form.  Same for View mode...need a valid Item record.

     

    If the Item property is not set and loading a record, and in Edit or View, then you will experience the issues you are seeing.

     

    I hope this is helpful for you.

  • Ny8C Profile Picture
    24 on at

    Yes That is helps. I have changed the DefaultMode to FormMode.New and its works fine.

    Many thanks for that.

  • v-LilyW-msft Profile Picture
    Microsoft Employee on at

    Hi @Ny8C 

    Thank you for posting.

    If your problem has been solved, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

    Best Regards.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard