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 dropdown base...
Power Apps
Answered

Populate dropdown based on another dropdown and textfield

(0) ShareShare
ReportReport
Posted on by 428

I am trying to populate dropdown on selection of another dropdown using below formula 

 

If((DataCardValue109.Selected.Value)="Completed",["Approved"],((DataCardValue109.Selected.Value)="Completed" && IsBlank(Trim(DataCardValue30_1.Text))),["Rejected"])

 

it work for first condition and give Approved  but if i check second condition with textbox blank value it does not work  and it gave first condition value only that is Approved .

Categories:
  • Ashok2 Profile Picture
    428 on at
    Any help in this
  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Ashok2 ,

    The reason why you met this problem is that :

    these two conditions have conflict.

    Please tell me, when DataCardValue109.Selected.Value="Completed", the drop down should display ["Approved"] or ["Rejected"]?

    You need to give two conditions that have no conflict that will not lead to ambiguity.

    Please try to modify your formula like this:

    If(DataCardValue109.Selected.Value="Completed"&&!IsBlank(Trim(DataCardValue30_1.Text)), 
     ["Approved"],
     DataCardValue109.Selected.Value="Completed" && IsBlank(Trim(DataCardValue30_1.Text)), 
     ["Rejected"]
     )

     

     

    Best regards,

  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Ashok2 

     

    This is not working because of the order of the specified condition, even if the textbox is empty, it will satisfy the first condition and will not look for the second one. Can you try to update the expression to:

    If(DataCardValue109.Selected.Value="Completed" && IsBlank(Trim(DataCardValue30_1.Text)),["Rejected"],DataCardValue109.Selected.Value="Completed",["Approved"])

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. 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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard