web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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
    153,084 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
    153,084 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
    153,084 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
    153,084 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard