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 / 2 Buttons - one sets t...
Power Apps
Answered

2 Buttons - one sets the status to Draft - the other one to Submitted. How?

(0) ShareShare
ReportReport
Posted on by 520

So it`s about a form. 

What I want to do:

When clicking SAVE button - set status to Draft, when clicking SUBMIT button, save status to Submitted.

*Status - DEFAULT: If(_origin=1,LookUp(Choices([@S2IM_InvoiceGeneralInfo].Status),Value="Draft"), ThisItem.Status)

Status is a column in a sharepoint list, type Lookup on another Sharepointlist.

*Status - ITEMS: Choices([@S2IM_InvoiceGeneralInfo].Status)

Categories:
  • Verified answer
    v-JessicaG-msft Profile Picture
    Microsoft Employee on at

    Hi @Robert94 ,

     

    Could you explain your needs to me in more detail?
    What value do you want to modify by selecting a different button control (The default display value of the Status field in the Form is to modify the value in the data source) ?  Is the control used by the Status field a Dropdown or a Combo box?
     
    If you select a different button to change the Status field default value, you could set a variable in both buttons to a different value and reset the Status field control.  1. Modify the  Combo box default value , you could modify its "DefaultSelectedItems" property.  2. Modify the Dropdown default value, you  could modify its "Default" property.  I have a test for your reference, please refer to the screenshot:
     
    1.Combo box
    vJessicaGmsft_0-1643187462702.png

     

     2.Dropdown

    vJessicaGmsft_1-1643187462701.png

     

     

     

    Best Regards,

    Jessica Gu

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard