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 / SharePoint Form Height
Power Apps
Unanswered

SharePoint Form Height

(0) ShareShare
ReportReport
Posted on by 32

I want to set SharePoint Form height to sum of all 'Visible' data cards' heights. Is this possible? I tried this, but it doesn't seem to work as expected. My form height is reduced significantly and loads with a scroll bar. I have set the form's height to something like the below formula.

 

Please note that some of my data card's visibility is dynamic based on certain conditions like another data card value or current logged in user etc.

 

Height:

Sum(

If(

'DataCard1'.Visible,

'DataCard1'.Height

),

If(

'DataCard2'.Visible,

'DataCard2'.Height

)

If(

'DataCard3'.Visible,

'DataCard3'.Height

)

)

Categories:
  • mdevaney Profile Picture
    29,993 Moderator on at

    @sudheervvs 
    The SUM formula is not necessary here.  It is meant for adding together values inside a collection.  Instead, you can simply use the + operator.

     

    If('DataCard1'.Visible,'DataCard1'.Height,0)
    +If('DataCard2'.Visible,'DataCard2'.Height,0)
    +If('DataCard13'.Visible,'DataCard3'.Height,0)

     

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

  • sudheervvs Profile Picture
    32 on at

    @mdevaney  Tried this too, but the result is same.

  • mdevaney Profile Picture
    29,993 Moderator on at

    @sudheervvs 
    OK, that's the only solution I can offer.  It works for me... If you give a few screenshots though it might help.  Be sure to include the left navigation menu in any screenshots.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • sudheervvs Profile Picture
    32 on at

    @mdevaney Sorry I am unable to share screenshots here due to security restrictions. Can you please clarify if the form's height will be set first or the data card's visibility gets set first? I suspect it is something to do with the load sequence of form/data cards and hence some of the data cards might not have become visible at the time the form's height formula is being calculated.

  • mdevaney Profile Picture
    29,993 Moderator on at

    @sudheervvs
    Nope, sorry without screenshots I cannot help any further.  I cannot visualize the problem you are having: it works for me so I need to see what is different.

     

    You could always make another example that does not have private data and share.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard