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 / Changing a Dropdown Va...
Power Apps
Unanswered

Changing a Dropdown Value from a Button

(0) ShareShare
ReportReport
Posted on by 214

I'm currently stuck on a formula for changing a Dropdown value from a button.

Here's my scenario

 

I select on the Garbagecan icon to Archive an item.

The popup comes up as a variable as I have set it to Set(varShowArchive, true)

LyonsBI_BRL_0-1619555952058.png

Which pops up the below

LyonsBI_BRL_2-1619556215064.png

 

I was able to do this on another app, using Removif, but I'm not trying to remove the record I'm simply attempting to change the value or a dropdown per that item from ACTIVE to ARCHIVED. 

So the source would be '2A Customers'

And the result would be. If I click on ARCHIVE, it'll set the Dropdown from ACTIVE to ARCHIVE and thus patch the record.

Any help would be greatly appreciated. I know I can do this through the Edit form, (that is a feature of the app) but this would make things super quick for archiving old records. 

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

    @LyonsBI_BRL 

    Patch( '2A Customers' ,ThisItem, {Archived:true}) 

    This is assuming there is an Archived column in your list , the button is in the gallery and the column type is a simple text column. Replace Archived with the name of your column.  

    Otherwise, Patch( '2A Customers' ,ID=Gallery1.Selected.ID, {Archived:true}) if the button is outside of the gallery. 

  • LyonsBI_BRL Profile Picture
    214 on at

    Hey @Drrickryp that's what I tried earlier but because I'm attempting to select from a dropdown menu, it's not working.

     

    LyonsBI_BRL_0-1619562383693.png

    So within the Whiteboard Gallery, there's a Dropdown called "Status2" which has the choice of ACTIVE or ARCHIVED. 

    Would it make more sense then to just make a column in SQL called "Archived"

     

    Thanks!

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @LyonsBI_BRL 

    If you already have a column Status2, I would just patch that column using the dropdown's selected value.

  • LyonsBI_BRL Profile Picture
    214 on at

    @Drrickryp I do have column status 2, however the button that I'm trying to set it for ThisItem.CustomerID, lives outside of the Gallery. How would I go about doing that. So the Archive button below, should be able to Patch / Update the status for ThisItem there within the Gallery.

    LyonsBI_BRL_0-1619589791557.png

     

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 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard