Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

combo box selection width adjust on select/change

(0) ShareShare
ReportReport
Posted on by 183

I have a combo box that I need to fit into a small width.

The combo field displays item code (3-5 characters) when not selected, but when it is selected, I want it to show full item name (20 or so characters).

Without any changes, it wraps the item name into small field width which is not nice.

lknudson1_1-1699121416457.png

I changed the field width to a local variable and set the OnSelect to update width variable to accommodate wider name text, which it does with a little weirdness - you need to reselect wider combo box to get dropdown of names.

lknudson1_3-1699123175315.png

 

I set the temp variable to shorter width temp variable on OnChange which it didn't work.

I did a Reset to the field in OnChange and then it did return field to shorter width but of course with original field value - not new selection.

 

Any ideas for me here?

 

Thanks!

 

Categories:
  • SpongYe Profile Picture
    5,580 Super User 2025 Season 1 on at
    Re: combo box selection width adjust on select/change

    @lknudson1 

     

    The chevron size is fixed and adjust with the height of the control. The only way to make the chevron smaller is to reduce the height of the control, but that may affect the visibility of the text. 

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • lknudson1 Profile Picture
    183 on at
    Re: combo box selection width adjust on select/change

    And another question.

    Is there a way to size chevron portion of field?

    lknudson1_0-1699125490619.png

    I can hide it by changing background fill, but it still takes up too much space when I want to fit many fields in a row.

    Thanks!

     

  • Verified answer
    lknudson1 Profile Picture
    183 on at
    Re: combo box selection width adjust on select/change

    I got it working now, but still kind of quirky.  Flashing gallery on update, secondary select when wide field shows.

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,522 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,890 Most Valuable Professional

Leaderboard