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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

items property

(0) ShareShare
ReportReport
Posted on by

Hello all,

Its possible create a "label" for items values?

 

The fiels is dropdown type

 

angelo_amaral_1-1601040575301.png

 

 

 

Example:

I have these values on the items property: "0', "1", "2", "3", "4"

These are de default values of my sql table .

But i need show a "text" when the uer select this field

The text must be as a lalbel of the values, like:

 

"0" = nonononnn

"1" = kakakakas

 

......

 

 

 

angelo_amaral_0-1601040465279.png

 

Categories:
I have the same question (0)
  • rsaikrishna Profile Picture
    3,703 on at

    @Anonymous 

     

    On the label's Text property you can write following formula:

     

    switch(DropDownField.Selected.Value,"0","Noon","nonononn","1","kakakakas,"") 

     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    You 'could' do something like this, but it might be a bit much depending on how many items you have in your dropdown.

     

    Set your label text to:

     

    If(
    dropdown.selected.value = 0, nonononnn,

      dropdown.selected.value = 1, kakakakas

    )

     

    And so on

  • Community Power Platform Member Profile Picture
    on at

    @rsaikrishna 

     

    Like this?

     

    angelo_amaral_0-1601044207969.png

     

  • Community Power Platform Member Profile Picture
    on at

    or this?

    angelo_amaral_0-1601044478111.png

     

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Set the properties in the DataCardValue25.    The DataCardKey contains the field name.

     

     

  • Community Power Platform Member Profile Picture
    on at

    tanks @JR-BejeweledOne , 

     

    But I dont found the text property in the datacardvalue

     

    angelo_amaral_0-1601046170073.png

    wich pproperty can I use?

     

    Thanks

     

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    My apologies, I misunderstood.   I am not sure I understand what you are wanting to do.    Are you trying to show the text values in a separate dropdown or are you trying to show the text values from your data source?   Does your data source have a display name for each of the values?

     

  • Community Power Platform Member Profile Picture
    on at

    dont worry @JR-BejeweledOne ...

    My datasource is one sql table iwth this field.

    In sql table , this field accept only "0", "1", "2",  dont have name of this field

     

     

    angelo_amaral_0-1601047145883.png

     

     

    My ideia is in powerapps screen present text instead of numbers, but the value to submit must be the numbers.

     

    angelo_amaral_1-1601047183453.png

     

    Thanks for your time and reply

     

     

     

     

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Can you add a screenshot here of the formula bar for the Items property of your datacard?  

  • Community Power Platform Member Profile Picture
    on at

    sure

    angelo_amaral_0-1601047941432.png

    thanks

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard