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!