Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Dropdown displays incorrect default value, but properties value shows correct default value

(0) ShareShare
ReportReport
Posted on by 446

I have a search feature that sets a variable called varFloor to a string value. The dropdown has its default value set to this varFloor variable and displays the correct value most of the time. For some reason though, it will sometimes display the incorrect value in the control. However, when I check the dropdown's Default property value, it will show the correct value.

 

Ryan_B_1-1682013332021.png

 

In the screenshot above, you can see that the value is 1 in the control but the value is actually 5 in its properties. So far this has only occurred with one specific instance, but the code is all the same for each instance, so I'm not sure why this is happening. I've tried to simply reset the control before setting the varFloor variable, but that didn't work.

 

Any thoughts on this? Thank you!

  • Verified answer
    Ryan_B Profile Picture
    446 on at
    Re: Dropdown displays incorrect default value, but properties value shows correct default value

    @BCBuizer 

     

    After several hours of extensive testing, I discovered that this only occurs in 3 specific scenarios. I tried several things to no avail, until I simply set two variables to Blank() before setting their values. This appears to have resolved the issue, and I don't entirely know why.

     

    Thank you for your time and attempting to help me with this baffling issue!

  • BCBuizer Profile Picture
    22,012 Super User 2025 Season 1 on at
    Re: Dropdown displays incorrect default value, but properties value shows correct default value

    Hi @Ryan_B ,

     

    In cases where the user selects 1 and no changes are made to the variable, this is to be expected. Can you elaborate on the conditions of the occasions where this behaviour is observed?

  • Ryan_B Profile Picture
    446 on at
    Re: Dropdown displays incorrect default value, but properties value shows correct default value

    @BCBuizer 

     

    That's correct to an extent. The variable value changes properly, and the dropdown visually changes to the correct value most of the time. But sometimes it'll show "1" when the value in the Properties panel says it's actually "5." You can see this in the screenshot I posted above.

  • BCBuizer Profile Picture
    22,012 Super User 2025 Season 1 on at
    Re: Dropdown displays incorrect default value, but properties value shows correct default value

    Hi @Ryan_B ,

     

    So you are saying that after you change the value of the variable that is references in the Default property, the value of the Drop Down is not updating? It should do that without using the Reset function.

  • Ryan_B Profile Picture
    446 on at
    Re: Dropdown displays incorrect default value, but properties value shows correct default value

    Hi @BCBuizer,

     

    I've tried to use the Reset('Control Name Here') function and then setting the variable which is set to its default value. This didn't change what happened, unless I'm misunderstanding what you meant. I can use this search feature for other instances and the dropdown changes and displays the correct value.

  • BCBuizer Profile Picture
    22,012 Super User 2025 Season 1 on at
    Re: Dropdown displays incorrect default value, but properties value shows correct default value

    Hi @Ryan_B ,

     

    The way the Default property works, is that it sets the selected value in case the user has not yet selected anything. In case you wish the dropdown to take it's default value, use the Reset() function.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,618 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,957 Most Valuable Professional

Leaderboard