cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gottijay2000
Advocate III
Advocate III

Resetting A DropDown in Powerapps SharePoint Custom List

I have a custom list in SharePoint with a text field called Group. In the integrated SharePoint list i want the users to have a dropdown instead of a text field on the datacard(Mainly because i want to reduce the number of lookup columns in my list).

the items Property of the dropdown is ["","A","B","C"]
default property of the datacard  is "thisItem.Group"
default property of the Dropdown control  is just an empty string
i only have one form

the issue is that when i click on new form on SharePoint i always get the last value that was chosen on the dropdown instead of an empty string
Not sure what i have done wrong any ideas?

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Gottijay2000 ,

You want a new record not to show any input on a DropDown? - I will call your form YourForm - replace this with the name

In the Default property of your DropDown

If(
   YourForm.Mode <> FormMode.New,
   ThisItem.Group
)

This should not default anything into the control on new records. 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

1 REPLY 1
WarrenBelz
Super User
Super User

Hi @Gottijay2000 ,

You want a new record not to show any input on a DropDown? - I will call your form YourForm - replace this with the name

In the Default property of your DropDown

If(
   YourForm.Mode <> FormMode.New,
   ThisItem.Group
)

This should not default anything into the control on new records. 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,700)