Skip to main content

Notifications

Power Apps - Power Apps Experimental Features
Answered

Issue with DropDown

(0) ShareShare
ReportReport
Posted on by 2
Come to my attention that the behavior of dropdowns changed a bit based on its contents. Not sure when this happened, as my user was not sure when the error started.
 
I had a dropdown which its items (timeslots) were defined in an array like ["","07:30","08:00","08:30","09:00"]
The dropdown looked like this
 
After the user reported the bug, I checked and indeed the dropdown had changed to this (again, 100% sure nobody touched this app last couple of months)
 
Seems that the first item of the array, being empty/null, causes the weird behavior. Solution is either move the empty/null to the end of the array, ["07:30","08:00","08:30","09:00",""] or use a blank instead of an empty/null  [" ","07:30","08:00","08:30","09:00"]. In either case User will need to select the last item when they need to blank the dropdown, or the app needs adjustment to deal with a blank instead of the empty (samples below).
No big deal, just another annoyance.
 
   
  • Verified answer
    Mark Nanneman Profile Picture
    Mark Nanneman 981 on at
    Issue with DropDown
    Hello @Canard,

    Interesting issue!  I was able to replicate it using the new "Dropdown (preview)" control.  The old "Drop Down" worked ok.

     
    I was able to fix it by setting the "Fields" property of the "Dropdown (preview)"


    Add the "Value" field


    This works for me, even with the blank as the first item in the items collection.

    If this helped you, please click "Does this answer your question" and give it a like to help others in the community (+ close the ticket)!

    Power Platform Developer | LinkedIn: Mark Nanneman | Blog: Power Stuff  | YouTube: Mark's Power Stuff 

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard

Featured topics