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
)
)