cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

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
Highlighted
Community Support
Community Support

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

Hi @Sanoj ,

 

Thanks for your post and the solution.

 

Best Regards.

Yumia

View solution in original post

4 REPLIES 4
Highlighted
Community Support
Community Support

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

Hi @Sanoj ,

 

Thanks for your post and the solution.

 

Best Regards.

Yumia

View solution in original post

Highlighted
Helper I
Helper I

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...

Highlighted
Regular Visitor

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

The link to the original post for the solution doesn't work. I can't see what the solution was.

Am I missing anything?

Highlighted
Regular Visitor

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

Thank you!

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,956)