cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Axal
Impactful Individual
Impactful Individual

Text input multiline height

Hi guys,

 

When having text input control as one of a Datacard, as I set the Mode to be Multiline, is it supposedly the height of the text box sync with he text inside ? I mean when my data have 3 or 4 lines (I setup manually by using Char(13)), does the text input height became 3 x 32 as the default height is 32 ?

 

I'm facing weird output as when it is displayed, it is looks like displaying the last line but there is scroll at the end of the input. How to make the text input when on display mode, its height follows what my data (text) is, means when it is 3 lines then the height will be 3 x 32 ? 

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Axal
Impactful Individual
Impactful Individual

Hi @iAm_ManCat ,

An update. It is because of Custom Page. I need to turn on Classic Control which is an upcoming features - experimental and use the control from this Classic instead.

Thanks again.

View solution in original post

5 REPLIES 5
iAm_ManCat
Super User
Super User

Hi, there is no autoheight for text inputs, you will have to either do this mathematically by working out how many characters per line at that font size and then multiply the height based on that, or else have your text input default to 3x32 and let people fill as needed.

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


Axal
Impactful Individual
Impactful Individual

Hmm.. I would say, not much for the "low code" then 😂

 

Yeah I even try to use Label instead, since Label has property Auto height, but then right after that label I put some "line" (rectangle) with the "Y" value referring to the Label's height above it. It turns out even though the label it self auto height, its height value turned out to be zero so I can't use it for Y of the line below it.

Hmmm, I was able to reference the Height of an autoheight label with the same text in it to change the text input height, so maybe look at why the value is showing as zero - is it in a gallery?

image.png

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


Axal
Impactful Individual
Impactful Individual

No, it's not inside a gallery. I only use it inside a EditForm but put as View mode.

I'm creating Custom Page though, wonder if that is the cause of not working. 

 

Probably should do the math manually like you suggested, just looking where I should put the code correctly and effectively, because with Custom Page, it is one screen only and this Edit form is inside a Container.

Thanks.

Axal
Impactful Individual
Impactful Individual

Hi @iAm_ManCat ,

An update. It is because of Custom Page. I need to turn on Classic Control which is an upcoming features - experimental and use the control from this Classic instead.

Thanks again.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (1,267)