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 / 'Allow Empty Selection...
Power Apps
Unanswered

'Allow Empty Selection' missing from DataCard DropDown

(0) ShareShare
ReportReport
Posted on by 67

I'm customizing a SharePoint List Form and trying to reset the a dropdown control to blank when the user clicks a button. 

Button

OnSelect: UpdateContext({clearErrorVar: true })&Reset(errorDropDown)

errorDropDown

DefaultSelectedItems: If(clearErrorVar=false, Parent.Default)

EditScreen

OnVisible: UpdateContext({clearErrorVar:false})

 

In theory, clearErrorVar is always false UNLESS the user clicks the button, so the errorDropDown should be Parent.Default until the user clicks the button and resets the field (which is blank on reset because clearErrorVar is true). This all seems to work within the form, but when I save it, it doesn't update the field appropriately--in the SharePoint list, the column still shows the original selected value instead of being empty.

 

The out of the box dropdown control generated from the SharePoint column doesn't have the 'Allow Empty Selection' attribute, presumably why it won't update the field as empty. Adding a custom dropdown control from within PowerApps does have the 'Empty Selection' attribute, but does not have the 'Default Selected Items' attribute, which I also need to keep the info in the field until it gets reset. 

 

Anybody know a workaround so I can reset this control with a button, but otherwise have it inherit Parent.Default? Or am I missing something obvious? Thanks in advance!

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @alexleetoo17 

    You appear to be mixing control types!

    Comboboxes have DefaultSelectedItems properties and not AllowEmptySelection properties.  Dropdowns have AllowEmptySelection properties and do NOT have DefaultSelectedItems properties.

     

    So which is it that you really are looking for to use?

  • alexleetoo17 Profile Picture
    67 on at

    @RandyHayes Well I thought I was using dropdowns this whole time but it sounds like SharePoint generates comboboxes by default? I don't have a preference between the two, I just need a field that can inherit its properties until the user intentionally resets them.

     

  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @alexleetoo17 

    Well, SharePoint is not the one generating Comboboxes, it would be how PowerApps interprets your column when it generates the form.

    What is the column type and is it set to allow multiple values?

     

    Dropdowns and Comboboxes are drastically different.  A combobox is used when you need multiple selections or searching.  Dropdowns do not provide those capabilities. 

    So the choice is going to have to be based on the column data type.

  • alexleetoo17 Profile Picture
    67 on at

    @RandyHayes  Column type is 'Choice' in SharePoint and it does allow multi-select so PowerApps must be reading that as ComboBox. Thanks for clarifying! I guess I need to rethink this

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @alexleetoo17 

    It's all good.  If it is a combobox and you want it to reset to blank selections, then you just need to set the DefaultSelectedItems property to blank.

    The formula you stated in your original post would not be doing that properly.

    It should be:  If(clearErrorVar, Blank(), Parent.Default)

  • Suggested answer
    TropicoLatino Profile Picture
    2 on at
    Hi there. I don't think your OP was truly answered.
     
    In Powerapps (2024), there are two dropdown controls - modern and classic.
     
    The Modern dropdown control does not have the AllowEmptySelection. The Classic version does.
     
    I don't know a solution for you, with the Modern control, but I had the same problem as you except I wanted to not allow my users to select a blank value, just because the data record has it blank or null.
     
    Anyway, I decided to use the Classic control version of the dropdown inside my datacard, made the AllowEmptySelection to false (default setting) but made the default value a specific value from my options list. It worked great.
     
    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

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