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 / Connecting controls
Power Apps
Answered

Connecting controls

(0) ShareShare
ReportReport
Posted on by 30

Good day all the smart people.

 

I do have a few issues with a canvas app I am building. I have created a table on Sharepoint with all the relevant data I need. The table has the following headings, Country Name, Flag URL and Dial Code.

 

The "Country Name" have all the country names listed below the heading, the "Flag URL" has the URLs to the different country flags listed etc.

 

1. The data is connected to my app. I have added a "Drop down" control and referenced the column I want to use which is the "Flag URL". The problem is, it does not display the country's flags, only the URL of the image. I also want the drop down to display the flag and country name when I click on the control to view other countries.

2. I have inserted a "text input" control which will be for the mobile number and a "label" control on top of the "text input" control. What I want here is when the country is selected from the drop down, the "label" control should display the selected country's dial code.

 

I appreciate your feedback, thank you

Categories:
  • Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at

    Power Apps doesn't support showing images in drop-downs. You could add an image control to show the image of the selected country. Or, you could add a gallery and display all countries and flags (as images) in the gallery. The gallery could be used to allow a user to select a country, instead of a drop down. 

     

    If you have a dropdown where the user selects a country, you could display the dial code in a label via:

     

    Label.text = dropdown1.Selected.DialCode

     

    Note, the above may not work, depending on how the dropdown is populated. If not, please post the "items" property of your dropdown.

     

    Also, the above could work for the flag as well. Just add an image control, and set the image property to:

     

    imagecontrol.image = dropdown1.Selected.Flag

     

  • MauriceBotha Profile Picture
    30 on at

    Thank you for the response. I used your formula to display the dial code, but the label display "false" instead of dial code

  • Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at

    What specifically did you put for the text property of the label?

  • MauriceBotha Profile Picture
    30 on at

    The below is the formula in the label's text property.

     

    'Label.TextRole'.Default = 'Country drop down'.Selected.'Dial Code'
    Untitled.png
  • Verified answer
    Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at

    It should be:

    'Country drop down'.Selected.'Dial Code'

     

    What you have, with the equal sign, is asking for it to check to see if the value of the default property is equal to to the dial code, and output true or false, whether or not they're equal.

  • MauriceBotha Profile Picture
    30 on at

    Ah, that makes a lot of sense, thank you. It worked perfectly

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
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard