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 / set manual value to fo...
Power Apps
Answered

set manual value to form by button code

(0) ShareShare
ReportReport
Posted on by 2

Greeting everyone

i'm new here

and here i have this form (source come from excel table)

mqi_0-1619531661565.png

 

anyway i want change status value of this form by code

for example when user pressd approve i want change (modify) status value by code to approve

I have the same question (0)
  • Verified answer
    v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @mqi,

    Do you want to modified Status value of a record from your datasource?
    What is the Item property of your DetailForm? Formula like "BrowseGallery1.Selected"? Are you opening this screen from your gallery screen?
    If yes, you can try this formula in your Approve button(I have tested this formula when Status column is a dropdown field or a Text field in my Excel, but pay attention, if this is a dropdown field, make sure "Approve" is one of the selections of your dropdown):

    Patch(TableName,BrowseGallery1.Selected,{Status:"Approve"})

    v-albai-msft_0-1619574088013.png

     

    Best regard,

    Allen

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
Vish WR Profile Picture

Vish WR 633

#2
11manish Profile Picture

11manish 588

#3
Valantis Profile Picture

Valantis 457

Last 30 days Overall leaderboard