cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stadi
Frequent Visitor

Option Sets in Canvas App

Hi All,

 

I want to create an options set for location Field according to my org location codes( which may have around 30) and it should come in dropdown.

 

Pl help me on how to create the lists.

 

Thanks and regards,

Siva

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @stadi :

Do you want to create a dropdown control with 30 options?

There are many ways to achieve this:

Solution1:hardcode

Set the dropdown controls items property to:

 

["Option1","Option2","Option3","Option4","Option5","Option6"]

 

61.gif

Solution2:Reference to a collection that contains options

1\Add a button and set it's OnSelect property to

 

ClearCollect(Options,["Option1","Option2","Option3","Option4","Option5","Option6"])

 

2\Set the dropdown control's Items property to

 

Options

 

62.gif

Best Regards,

Bof

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @stadi :

Do you want to create a dropdown control with 30 options?

There are many ways to achieve this:

Solution1:hardcode

Set the dropdown controls items property to:

 

["Option1","Option2","Option3","Option4","Option5","Option6"]

 

61.gif

Solution2:Reference to a collection that contains options

1\Add a button and set it's OnSelect property to

 

ClearCollect(Options,["Option1","Option2","Option3","Option4","Option5","Option6"])

 

2\Set the dropdown control's Items property to

 

Options

 

62.gif

Best Regards,

Bof

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,216)