cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sanoj
Level: Powered On

Clear dropdown value / reset dropdown to default value in edit form.

Scenario : Form consists of multiple textboxes and dropdowns. Datasource is Sharepoint and the data is saved into a SharePoint list. One of the dropdown is to choose the skill level, dropdown name is "Java" with 3 skill levels - Beginner, Intermediate & Expert. The default value of the dropdown is set to blank in SharePoint list.

While creating a new item, I chose the value "Expert" for the dropdown and submitted the form.

Later I decided to clear the value in dropdown and to leave it blank.

 

Issue : In the edit form, I cleared the value in dropdown (Java) and submitted the form. The value "Expert" remains as such in SharePoint list and is not getting cleared or not resetting to the default blank value. Tried editting the form couple of times with no luck.

 

Solution : Use the "Update" property of the DataCard to clear the dropwdown or to set the default value as you wish. Screenshot below.

1. Select the datacard

1.png

2. Choose the "Update" property

2.png

3. Set the value to - If(DataCardValue29.Selected.Value = Blank(),{Value: "",
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"}, DataCardValue29.Selected)

 

"DataCardValue29" is the "Java" dropdown and in the edit mode if the selected value is blank then set the blank ("") value (or you can specify your default value mentioned in the  SharePoint list). This will update the value in list.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Clear dropdown value / reset dropdown to default value in edit form.

Hi @Sanoj ,

 

Thanks for your post and the solution.

 

Best Regards.

Yumia

2 REPLIES 2
Community Support Team
Community Support Team

Re: Clear dropdown value / reset dropdown to default value in edit form.

Hi @Sanoj ,

 

Thanks for your post and the solution.

 

Best Regards.

Yumia

imranamikhan
Level: Powered On

Re: Clear dropdown value / reset dropdown to default value in edit form.

Hi @Sanoj

 

Thank you very much for this. Do you know if I could apply this logic to reset/clear a text input box on SharePoint?

 

https://powerusers.microsoft.com/t5/General-Discussion/Update-Text-Input-Box-on-SharePoint-Edit-Mode...

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 191 members 5,678 guests
Please welcome our newest community members: