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 / Need to select approve...
Power Apps
Answered

Need to select approvers depending on the information in gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Please, help me. I have a gallery . There are two fields in this gallery- recommended discount and requested discount, and if the second one exceeds the first one, the third field "Approval" is filled with text "Approval is required". Depending on this information i need to select an approver. If field is blank- no approver needed, if "Approval required"- need to take approver from SP list. Please, advise, how to fix this task.

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

    Hi @Anonymous ,

    Do you want to fill in the third field based on the first two fields, and if the third field display "Approval is required", you need to choose Approval for this item?

     

    I've made a similar test for your reference:

    1)insert a gallery, display two fields: recommended discount and requested discount

    2)insert a label inside the gallery, set the label's Text:

    If(ThisItem.'recommended discount '<ThisItem.'requested discount',"Approval required","")

    3)insert a combo box inside the gallery to choose approver (approver is a person field in my list)

    Set the combo box's Visible:

    If(Label1.Text="Approval required",true,false)

    Set the combo box's Items:

    Choices(test1031.approver)

    //test1031 is my list name, you could replace it

    4)insert a button inside the gallery to submit the data of Approval and approver field.

    Set the button's OnSelect:

    Patch(test1031,ThisItem,{Approval:Label1.Text,approver:ComboBox1.Selected})
    //if approver is a single person field
    Patch(test1031,ThisItem,{Approval:Label1.Text,approver:ComboBox1.SelectedItems})
    //if approver is a multiple person field

    10316.PNG

     

     

     

    Best regards,

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard