Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

Set drop down default value by ID



I do have a drop down where the datasource is a Collection. I just wanted to set its default value from a variable (by ID).


how can i achive this?


thanks in advance,



Accepted Solutions

using a varaible i can be able to sort out the issue. 


the issue is fixed. 

View solution in original post

Super User
Super User

Hi @ammarfassy,


Can you send us more information?

a) where is the collection being populated from?

b) Can you send us a print screen of the columns of the collection (View\Collections)?

c) Where are you getting the ID from that should be defaulted to?


Kind regards




thanks a lot david for your reply.


I am populating this collection once the user logs into the app (onvisible event login form).


Upon that i have a list of items to be displaed on the Dashboard page. from there when the user selects an item, i am passing the leave Type (ID) to the Edit screen where the drop down reside. (have attached the screen shot)


Once the page opens i have to select the drop down value based on the passed parameter.






Anyway that you can attach the app. Otherwise you can send it to me at


Otherwise you can send me the print screen of the collection values, but this will take longer.

i will try to send you the package very soon.


the collection which i m deriving the collection is as below:


using a varaible i can be able to sort out the issue. 


the issue is fixed. 

View solution in original post



Can you share the fix please ?






Hii @NigelP,


I already populated the following drop down using a collection (Sharepoint List) as below.

ID  Value

0   None

1 Personal

2 Official


For a drop down you will find the property named "Default". In that you can set the Default value for the drop down as below:

If(pLeaveMainType="0", "None", If(pLeaveMainType="1","Official","Personal"))






Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

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