web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Setting dropdown field...
Power Apps
Unanswered

Setting dropdown field default based on another field

(0) ShareShare
ReportReport
Posted on by 112

Hi folks, I'm struggling trying to get this to work and could use some help.

 

I've got two fields, a dropdown called "contract_dropdown" and a text input called "contract_desc". The Dropdown has a list of a few values, one of which is the string (value?) "Other".

 

What I want is, when contract_desc is not empty to default contract_dropdown to the "Other" option. If contract_desc is empty then it should just be Parent.Default.

 

I've got a mostly working if statement, but I can't figure out how to set the value for contract_dropdown from within the default property of contract_dropdown. 

 

 

 

If(IsBlank(contract_desc),Parent.Default,{Value: "Other"})

 

 

What do I need to put in the else section to set the value of the dropdown?

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @entertain89 ,

     

    Please try:

    If(IsBlank(contract_desc.Selected),Parent.Default,{Value: "Other"})

     

    Best Regards,

    Bof

  • CU23010049-0 Profile Picture
    112 on at

    Good morning!

     

    Unfortunately this produces an error about expecting text values.

    entertain89_0-1694689808383.png

     

    Let me know what other info I can provide to help troubleshoot.

  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @entertain89 ,

     

    Please try:

    If(IsBlank(contract_desc.Selected),Parent.Default,"Other")

     

    Best Regards,
    Bof

  • CU23010049-0 Profile Picture
    112 on at

    It throws an error about .Selected being included.

    entertain89_1-1694794687354.png

     

    Removing selected fixes the error but I'm having an issue where IsBlank never seems to return true as it is always defaulting to the else condition (setting the dropdown to other).

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard