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 / HTML element - auto-re...
Power Apps
Answered

HTML element - auto-resize a from a Multiline column in SharePoint

(0) ShareShare
ReportReport
Posted on by 229

Hi, I've a HTML element displaying the data from a SharePoint column in SharePoint which format is "Multiline". The code is something like this:

 

 

<span style=""width:100%; padding-top:5px;"">
 <textarea readonly style=""width: 100%; height: 200px; overflow-y: scroll; font-family:open sans; margin-top: 10px; border: 1px solid;""> 
 "&MySP_List.MyMultilineColumn&"
 </textarea>
</span>

 

 

I was thinking I could change the height property to "height:auto", but it is doing nothing.
At the moment this value is set to 200px but the multiline column can be any size and I would like that to resize automatically to the max length of the box.

 

Is there any option to do that?

 

I think I could do that with Javascript but as far as I know JavaScript is not possible in the HTML component?

 

Any idea or suggestion to display in a HTML component a multiline column with auto resize is more than welcome.

 

Kind REgards 

 

 

 

 

Categories:
I have the same question (0)
  • timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    Hi @Sam4 

    Have you tried setting the 'Auto height' property, or is that what you were trying to do when you set the height property to "height:auto"?

     

    image.png

     

  • Sam4 Profile Picture
    229 on at

    Hi @timl thanks for your reply,

     

    I'm not referring to the whole HTML but to a specific text box in the HTML.

    So if the HTML is presenting these 3 text boxes, that are data in SharePoint (Text the first 2, and multiline the last one), the last one is not resized to display the total text. 

     

    Screenshots.JPG

     

    So the whole HTML is resized with that property as you mention, but the text box displaying a multiline column within the HTML, it is not. 

  • Verified answer
    Sam4 Profile Picture
    229 on at

    Just for the record, I was not able to solve the problem using <textarea> tag. Instead of that I used <div> with some CSS to simulate the look and feel and using that, it worked for me.

     

     

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
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard