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 ?
Solved! Go to Solution.
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.
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?
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.
Join us for the next call on August 17, 2022 at 8am PDT.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.