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

Dropdown control always resetting to first item

Hi,

 

I have a form with dropdown. I'm populating this dropdown from another list filtered by another dropdown value.

 

the problem is, on edit mode, it is always displaying the first item eventhough i set the default value to thisitem.<column> or parent.default.

 

the first load it is ok. but when i open another item the problem will happen.

 

Is there a caching bug here? if i wait for about 10sec before opening a new item, it is loading properly. 

 

please advise...

 

Thanks

2 REPLIES 2
Community Support Team
Community Support Team

Re: Dropdown control always resetting to first item

Hi @jobertlapena,

 

"I'm populating this dropdown from another list filtered by another dropdown value.", I'm not quite sure how did you achieve this. Could you please share more detailed configuration? Including how did you set the another dropdown value. Maybe some screeshots could help understand better. 

 

Do mask sensitive data before uploading.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
jobertlapena
Level: Powered On

Re: Dropdown control always resetting to first item

Hi @v-monli-msft,

 

These are the steps:

 

1. Department Field (Sharepoint single line of text) - in the powerapps form, i added a custom dropdown control in the datacard (Department_dropdown).

2. in the Department_dropdown's "Items" property, i set it to Filter(<Departments Datasource>, Title=<dropdown2.selected.value>).Department. This will populate the department with items filtered by the dropdown2 selected.

3. in the Department_dropdown's "Default" property, i set it to If (DisplayMode= DisplayMode.Edit, ThisItem.Department, Parent.Default)

 

 As you can see in the screnshots, the Department value should be PCG and not FCG. But the weird thing is that it doesn't happen all the time. it seems like the filtering was able to run but the setting of the default value didn't proceed.

 

You can test this by creating multiple items, then try opening items quickly.

 

 

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,764)