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 Apps
Answered

Filter choices

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

So I'm building out an app and having trouble with a function I have been asked to add to it. I have a toggle yes/no and I want that to allow only one choice in a dropdown in another datacard.

JMauldin_0-1620675337589.png

But if the toggle is set to no I want the full choices list selectable. Is this possible and if so how do I get this to work right. 

Thank you.

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    Consider this on the Items Property:

    If(Toggle6.Value,Datasource,Filter(Datasource,Column="Your Item You want to see"))
    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    Based on the issue that you mentioned, do you want to filter the Combo Box based on the Toggle value?

    Could you please share a bit more about the scenario, is this 'Computer Type' a Choice column?

    If it is a Choice column, please try the formula as below:

    If(
     DataCardValue3.Value,
     Filter(
     Choices(YourSPList.'Computer Type'),
     Value = "Engineering Computer"
     ),
     Choices(YourSPList.'Computer Type')
    )

    Note: DataCardValue3 represents the Toggle control.

    Hope it could help you.

    Regards,

    Qi

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you so much this work perfect!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Well it does work but now it breaks updating the SP page and the app shows noting after submitting the form. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    So yes this is a Choice column in my SP list. The toggle when flipped to yes should filter my selecton in the drop down to only show the 'Personal Computer' option. With the string provided it did work but the update to the SP list as well as the app now only show the default selection as 'None' not what is selected now. Two screen shots that I hope will help. Thank you all.

    JMauldin_0-1620755548028.png

    JMauldin_1-1620755603360.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Fixed I had the column name wrong for the sharepoint list and its broke. All good now and works as it should.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard