Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

HTML auto height

(0) ShareShare
ReportReport
Posted on by 725

Hi everyone

 

I have an HTML TEXT with it's auto height controlled with a boolean of :

"Emergency Response" in Concat(varGalMain.WhatWasInvolved,Value,", ")

and the height property of the HTML TEXT is 0. It seems to work , but when I come back to it, it's then not working.  I'm finding the height does not go to 0 even if "Emergency Response" is not in:

Concat(varGalMain.WhatWasInvolved,Value,", ")

My objective is if "Emergency Response" is in varGalMain.WhatWasInvolved, then it auto heights to the height of the html content otherwise the height wants to be 0. I am not getting any errors.

  • R Bakker Profile Picture
    725 on at
    Re: HTML auto height

    I think I might have a work around, have Auto height true, then in the HTML 

     If("Emergency Response" in Concat(varGalMain.WhatWasInvolved,Value,", "),"All my html","")

     but I will trial a bit more tonight.

     

  • R Bakker Profile Picture
    725 on at
    Re: HTML auto height

    Hi Randy

    I have five HTML on the same screen and depending on whats in 

    varGalMain.WhatWasInvolved

    changes which HTML shows up, and they need to appear one under the other. in some cases only HTML is displayed and in other cases there might be three.

    If I use On Visible, it hides it but the next HTML is halfway down the page.

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: HTML auto height

    @Corissandageri 

    If you want the height to be 0, then you are saying you don't want it to be visible!

     

    In that case, set your Visible formula to: 

    "Emergency Response" in Concat(varGalMain.WhatWasInvolved,Value,", ")

    And your AutoHeight to true.

     

    I hope this is helpful for you.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,552 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard