web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to set combo box i...
Power Apps
Answered

How to set combo box items from global choice

(0) ShareShare
ReportReport
Posted on by 78

Hi Everyone,

 

I have a global choice named Gender with follwoingvalues : Male,Female ,... 

 

I added a combo box to the screen and I want to set the items of combo box to display value of this global choice.

 

In the combo box Items I added: 

Choices('Gender')

But it does not work and i have error.

 

Could you please advice how to do it?

 

Thanks,

 

Categories:
I have the same question (0)
  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    Somewhere in your app you need to have this statement:

    Set(v_Gender,["Male","Female"])

    Then in the Items property of the ComboBox you need to us v_Gender

    If you mean you want someone to set that variable earlier in the app and have it be pre-populated in the Combo Box then you need to make v_Gender a single one of the choices. I would use a DropDown not a ComboBox and put the vaiable in the Default property.

  • merry Profile Picture
    78 on at

    Thank you for the reply.

    But I do have a global option set named Gender. The global option set has already have Male and Female I just want to use it and I do not want to redefine the choices again as a variable.

     

    My question in how can we use the global option Set in the items of my combo box.

     

    I also work in Data verse for teams so i do not have any dropdown I only have combo box

  • Verified answer
    BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    Your "global option set" needs to be a table. Then you can use it in the Items property of the ComboBox

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard