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 / PowerApps form button,...
Power Apps
Answered

PowerApps form button, which changes column field value

(0) ShareShare
ReportReport
Posted on by 102

Dear Users,

I'm new to PowerApps, I would like to ask you about one thing:

 

I have a list with column Status (Choice)


Choices:

Confirmed

In approval (default value)

Rejected

Cancelled

 

I would like to make a "Cancel" button in form and if user click it, the record in 
Status column will be updated from for example Confirmed to Cancelled.

Untitled.png

 

Thank you in advance for your help.

Categories:
I have the same question (0)
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Karol Set the default property of the dropdown to a variable like, varStatus.

    Then in the OnSelect of the Cancel button set the value of the variable varStatus to the one you want (e.g. Cancelled).

  • Karol Profile Picture
    102 on at

    Dear @CNT ,

     

    Thank you very much. Could you provide me little more information how to do that step-by-step?
    Firstly, should I create a variable varStatus just by writing in Default dropdown varStatus (in that case I got an error) and then in the OnSelect Button should I Set(varStatus, "Cancelled")?

     

    Untitled2.png

     

    @Edit

     

    I just found out that my field is not a drop box, it is a combo box

     

    Thank you in advance.

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Karol As it is a ComboBox, set the DefaultSelectedItems property to varStatus. In the OnSelect  of the Cancel button use this formula,

    Set(varStatus, Filter(Choices(ypurSPListName.Status), Value="Cancelled"))

  • Karol Profile Picture
    102 on at

    Thank you @CNT it worked!

     

    Last quick question (I promise):

    Is it possible, that this button will be "clickable" not only in "Edit" mode, but in "View" mode too?Untitled23.png

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Karol By default buttons are clickable in the view mode also. In my example below, I have a button that says, "Click me" which displays a message "You clicked me!" when clicked.

     

    CNT_0-1637522597444.png

     

     

  • Karol Profile Picture
    102 on at

    Dear @CNT ,

     

    Yes, it's working, I don't know why it was not working earlier. Thank you very much for your help, I really appreciate it 🙂

    Greetings from Poland! I started learning PowerApps so I'll ask sometimes in topics here 😄 Thank you!

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Karol Great news! Just @mention me.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Is it possible to do this but without the choice field being visible on the form itself, i.e. the button changes the value upon clicking? 

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard