cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dave8
Impactful Individual
Impactful Individual

How to set default item of "Dropdown" control in the canvas app?

Hello,

 

I am binding dropdown control ( Not a combo box) with collection "colTest" having two fields ID and Value.

 

the "ColTest" contains 5 items.

 

I have a specific item value on the screen let's say "ID=3" and "Value=Value3", how can I set that item as default item in the dropdown box?

 

I do not have "DefaultSelectedItems" property, but there is a  "Default" property only.

 

I have tried formula - "First(Filter(colTest, ID = 3))" , however it throws an error saying there is an error in the formula.

 

Can you please guide how do I set the default item in the dropdown list?

 

Thanks,

1 ACCEPTED SOLUTION

Accepted Solutions

a4.jpga5.jpg

 

Try "Value" in Default as seen above. Tested it myself

View solution in original post

4 REPLIES 4
zmansuri
Super User
Super User

write this in the default

["Value3"]

or if it doesn't work

{Value: "Value3"}

rampprakash
Memorable Member
Memorable Member

Hello @dave8 ,

 

You can try 

 

Filter(Choices(colTest, ID = 3))

 

Please mark as Answer if it is helpful and provide Kudos


Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com

 

dave8
Impactful Individual
Impactful Individual

All of the following formula throws an error saying, "There is an error in the formula"

 

Filter(Choices(colTest, ID = 3))

write this in the default

["Value3"]

or if it doesn't work

{Value: "Value3"}

 

I am unsure if "Default" property of the Dropdown box is really functional for the canvas app? sounds like a limitation to me!

 

Thanks,

 

a4.jpga5.jpg

 

Try "Value" in Default as seen above. Tested it myself

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,934)