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 / Form resizing within c...
Power Apps
Unanswered

Form resizing within container

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I have a form that is within a container. The form height is set dynamically by the height of the data cards within it. When the screen loads a text box on screen tells me that the form is, for example, currently 1208. I then go back, choose a different profile, and return to the form screen. The height is now wrong as the form is still displaying 1208, despite the 'reset form' tied to the screen's on visibile property. However, if I have a button to reset the form it then resizes correctly.

 

Any suggestions on getting the form to resize correctly when the screen loads rather than as a two step process?

Categories:
  • SG-19021613-0 Profile Picture
    on at

    I have just implemented one slight work around which is to put a very short timer delay on the screen to reset the form when the screen becomes visible. However this seems a bit clunky!

  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @SamGibbs,

     

    I was able to replicate the issue on my end as well. While troubleshooting, the main cause seemed to be the use of a dynamic calculation within the Form Height property (for example: DataCard1.Height + DataCard2.Height). When the heights of those DataCards changed, the form height did not.

     

    A workaround that solved the issue for me was referencing a variable in the Form Height property (e.g. varHeight) and setting that variable in the OnVisible (e.g. Set(varHeight, DataCard1.Height + DataCard2.Height). This way the calculation does not occur within the Form itself, the Form height property simply references the total of that sum - no need for ResetForm().

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • SG-19021613-0 Profile Picture
    on at

    Hi - this didnt work for me. The issue seems to be that the calculation is done at the same time the form loads and therefore the form doesnt take the value unless it does a reset.

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 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard