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,
Solved! Go to Solution.
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?
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 firstname.lastname@example.org
Otherwise you can send me the print screen of the collection values, but this will take longer.
I already populated the following drop down using a collection (Sharepoint List) as below.
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"))
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.