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

Decaying Dropdown

(0) ShareShare
ReportReport
Posted on by 205

I have a need for a "decaying dropdown".  What I mean by this is....I have a list of people ready to be assigned to a project.  Once they are assigned, their name is removed from the available list.  I created a choice column with true false values and added them for the employee (true = available).  Powerapps seem to be looking at these values just fine and I have a table that I have been able to successfully sort and filter with the true false values.  Where I am stuck is how to make the value change when the selected employee is picked for deployment, and how to change the value back if for some reason the deployment does not happen.  I thought of an "IF" statement on the availablity true false field, but doesn't seem like it's right.  Any help and or ideas would really be appreicated.

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi TT, 

     

    Given your description, it sounds like you could use a gallery with a toggle added.  What is the data source for your table?  

  • TerrificTerri Profile Picture
    205 on at

    SharePoint is the data source

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi TT,

     

    I think this may be what you are looking for.  I created this from a list of over 2000 doctors in one of my sharepoint files. That list has a column Referral analogous to your Available column that was orignally a choice column. I have a problem with patching sharepoint choice items so I changed the type to single line text  before I generated the Powerapp. This did not affect the underlying data but it is now Text that is either "True" or "False".  After creating a new app from the Sharepoint connector, I modified the browsegallery by adding a Toggle switch. The only changes that I made to the newly generated app related to the Toggle properties otherwise the app worked well: The Toggle properties modified were:

     

    Default - If(Referring="True",true,false).

    OnCheck-  Patch(Doctors,ThisItem,{Referring:"True"})

    OffCheck - Patch(Doctors,ThisItem,{Referring:"False"})

    TrueText - ."Deployed"

    FalseText - "Available"

     

    I hope this example can be used for your app. 

     

    Docs.PNG
  • TerrificTerri Profile Picture
    205 on at

    OMG  I am trying this now and it just makes more sense than what I started with.  Thank you for your time and awesome information sharing!

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard