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 text input ...
Power Apps
Suggested Answer

How to set text input control to expand downward as text increases

(0) ShareShare
ReportReport
Posted on by 37

I am developing a project form in Power Apps which includes a multiline text input control for “Description”.  When text exceeds the size of the input control a scroll bar appears.

To maintain a modular layout, I’ve divided the form into sections using containers.  For example, the Description container holds a “Description” label and the description text input control.

My client has informed me that no one likes the scroll bars and wants the text input control to expand with the increasing size of text.
I’ve accomplished this setting the text input control height as txtDescription.Height=50 + (Len(txtDescription.Text) / 50) * 20  and setting the container height to Flexible Height=On.


My problem is that the container only expands upward and overlaps the containers/controls above it.

I want the text control and container it’s in to remain in a fixed position, expanding downward and shifting the containers/controls below it downward as it expands.

Any ideas?
 

Categories:
I have the same question (0)
  • Suggested answer
    AndrewR1 Profile Picture
    1,572 Moderator on at

    Set Dynamic Height for the Text Input

    Select the Text Input (txtDescription) and set its on change property to:
     
    Set(varLength ,txtDescription.Value)

    Select the Text Input (txtDescription) and set its Height property:

    50 + (Len(varLength) / 50) * 20

    This makes the input box grow as users type.


    Set Dynamic Height for the Container

    Select the Description Container (containerDescription) and set its Height:

    txtDescription.Height + 30

    The container will grow to accommodate the expanding text input.


    Push the Budget Container Down

    Select the Budget Container (containerBudget) and set its Y property:

    containerDescription.Y + containerDescription.Height + 10

    This ensures the Budget section moves down when the Description section expands.

    Please click Accept as the Answer 
     
    If my post helped you solve your issue. This will help others find it more readily. It also closes the item. Remember, you can accept more than one post as a solution. If the content was useful in other ways, please consider giving it a Like 👍

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard