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 Platform Community / Forums / Power Apps / Need to wrap text of c...
Power Apps
Answered

Need to wrap text of choices selected

(0) ShareShare
ReportReport
Posted on by

Hi All,

Please refer the screenshot wherein the last part of the selected choices show up as "...".

Is there no way to wrap it? It has to remain choice field as we have a dropdown here for multi-select fields to choose from.

GauravG_0-1619792841347.png

@RandyHayes Can you please check this?

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    This is a label or TextInput control?  It does not appear to be a dropdown or anything.

    If it is a label, then you can turn the Wrap on.

     

  • Community Power Platform Member Profile Picture
    on at

    @RandyHayes It's a combo-box

    GauravG_0-1619793883888.png

     

  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    Ah, gotcha...I should have known from before.  It is just in View mode!

     

    So, there is no way to wrap text in the combobox.  The only real option you would have would be to use a label which does have a wrap capability.

     

    You can do some switching of controls based on the form mode.

    So for example, you can add a label to that datacard with the following things done:

    - Set the Visible property formula to : Parent.DisplayMode = DisplayMode.View

    - Set the Wrap on (true)

    - Set the Text property to :  Concat(yourCombobox.SelectedItems, Role & ", ")  (I believe it was Role in the selectedItems, if not, change to the proper column name)

     

    The, set the Combobox Visible property to: 

       !(Parent.DisplayMode = DisplayMode.View)

     

     

     

  • Community Power Platform Member Profile Picture
    on at

    @RandyHayes Awesome, that worked

    2 challenges however:

    1) Field alignment is distorted- you see how the left field is upper and this one came down

    2) Is there a way to auto-increase the height of the label so that the text looks nice- text is fitting in but not visible from top & bottom due to height

    GauravG_0-1619794946037.png

     

  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    Yes, you can turn the AutoHeight property on (true).  You can also make the overflow scrollable by setting the Overflow property to Overflow.Scroll.

     

    You'll also probably want the label to conform to the location of the combobox.  So, you can set the Y property of the label to yourCombobox.Y  and the X property to yourCombobox.X and the width to yourCombobox.Width

     

    Just keep in mind that once you set the X, Y and Width properties...if you move the label control or change the size in any way, PowerApps will wipe out that formula and replace with where you moved it.  So get it set up as you like and then set those if needed.

  • Community Power Platform Member Profile Picture
    on at

    Am super happy 😄! Thanks, i will be posting few more today

  • Community Power Platform Member Profile Picture
    on at

    @Randy A minor challenge- the height became half if there were less selections with AUTO HEIGHT being true

    GauravG_0-1619797272185.png

    I tried playing smart by trying to count the number of combo box items and turning auto height on if items are more than 4- not sophisticated i know- but it doesn't even work.

    GauravG_1-1619797347087.png

    Any alternate?

     

  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    Yes, changing the AutoHeight like that doesn't work.  

    In looking at that image though, I would instead change the top and bottom padding of the label to give you a label the size you want when it is only one unwrapped line.

  • Community Power Platform Member Profile Picture
    on at

    Genius!

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard