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 / Auto Height for Datacards
Power Apps
Unanswered

Auto Height for Datacards

(0) ShareShare
ReportReport
Posted on by 68

Hi everyone,

 

Is there a way to enable Auto Height for Datacards in a form?

 

Thank you,

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,501 Most Valuable Professional on at

    @soraiataipa ,

    What do you mean by Auto Height?

    You can refer to the card (Parent.Height) minus an amount allowing for top and bottom spacing. If you do this, it needs to be done for all controls in the form (or at least remove the "standard" X and Height set by Power Apps)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • soraiataipa Profile Picture
    68 on at

    Hi @WarrenBelz 

     

    Thank you for responding.

     

    In a form I've a datacard tha in some cases has 10 lines and in other just 2. Instead of setting the height as something equal, leaving a lot of blank space for the ones with just e lines of text, I'm wondering if there is a way that the height adjust automatically.

     

    Can you h«give an example on how to follow your suggestion?

     

    Thank you,

  • WarrenBelz Profile Picture
    155,501 Most Valuable Professional on at

    Hi @soraiataipa ,

    A little bit inaccurate at times, but you could set the height as a division of the number of characters in the field

    Len(FieldName).Text / Whatever

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • soraiataipa Profile Picture
    68 on at

    Hi @WarrenBelz 

     

    Thank you for replying and for presenting a suggestion. Unfortunatly, it doesn't work...

  • WarrenBelz Profile Picture
    155,501 Most Valuable Professional on at

    @soraiataipa ,

    It does (sort of), but that is all I have to offer

  • soraiataipa Profile Picture
    68 on at

    Hi @WarrenBelz 

     

    Thank you again.

     

    Maybe I'm not understanding how to do it. I've added the following formula to the Height:

    Len(DataCardValue12.Text)/250

     

    What happens is in some cases the data card is much bigger that the text and other it less then the text. In some cases it fits the text perfectly but the most of the cases gives a even bigger white space or a smaller space then the text.

     

    Am I doing something wrong on applying the formula?

     

    Thank you again.

     

    Best,

    Soraia

  • WarrenBelz Profile Picture
    155,501 Most Valuable Professional on at

    @soraiataipa ,

    That is why I said "sort of" . . . It is a simple division and depending on the font and line breaks, the formula will do exactly as you have experienced. It is actually on the Microsoft suggestions - you might want to vote for it.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • soraiataipa Profile Picture
    68 on at

    Hi @WarrenBelz 

     

    Thank you again. I've voted on the suggestion. Would be great to have that development.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 385

#2
Vish WR Profile Picture

Vish WR 367

#3
timl Profile Picture

timl 340 Super User 2026 Season 1

Last 30 days Overall leaderboard