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 / Populate with dropdown...
Power Apps
Answered

Populate with dropdown with selected button value.

(0) ShareShare
ReportReport
Posted on by 195

I have an Edit form which has a drop down called "Approval".  There are also 2 buttons, "Approve" and "Reject".  When the "Approve" button or "Reject" button is clicked, I want my drop down to get populated with "Approve" or "Reject".  I tried the following but it didn't work.

 

OnSelect = Approval.Selected.Value = "Approve"

isogunro1_0-1679331440146.png

 

 

Any help would be much appreciated.

Categories:
  • Verified answer
    vikas1606 Profile Picture
    206 on at

    Hi @isogunro1 ,

     

    Use a variable and assign it to the dropdown's DefaultSelectedItems property.

    On the Approve button onselect

    Set( Item, "Approve");

    On the reject button on select.

    Set( Item, "Reject");

    If above would not work then tell me what do you have Items property.

  • isogunro1 Profile Picture
    195 on at

    @vikas1606,

     

    I did this but it didn't work.  The items for the dropdown is Choices([@'travelList'].Approval)

     

    On the Approve button onselect

    Set( approvalStatus, "Approve");

    On the reject button on select.

    Set( approvalStatus, "Reject");

    isogunro1_1-1679336687713.png

    Any thoughts?

     

    A

     

    Any

  • Verified answer
    isogunro1 Profile Picture
    195 on at

    I figured it out.  

    DefaultSelectedItems = [approvalStatus]

  • vikas1606 Profile Picture
    206 on at

    @isogunro1 I am glad it worked. Keep posting new issues to the community.

     

    Thanks! 

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 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard