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 / HTML label is not rend...
Power Apps
Answered

HTML label is not rendered quick enough

(0) ShareShare
ReportReport
Posted on by 45
 
 

Hi All,

 

every user of my app sees attached message on the welcome screen. It gives the App an unprofessional feel. I'm assuming the reason is that the label contains a CountIf formula that counts items from a Sharepoint list. Is there any chance to delay the visibility of the label?

 

Thanks,

Tobias 

test.png
Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    That's an HTML text control. What's its HtmlText property set to?

  • Krau5i Profile Picture
    45 on at

    This is the 'code':

    "<center>You have <b>" & CountIf(
     AP_Data,
     Requisitioner_x0020_Email = User().Email,
     Processed = "No"
    ) & "</b> 
    item(s) in AP and <b>" & CountIf(
     TE_Data,
     'Exp Line Created by Name' = Mid(
     User().FullName,
     Find(
     " ",
     User().FullName
     ) + 1
     ) & ", " & Left(
     User().FullName,
     Find(
     " ",
     User().FullName
     ) - 1
     ),
     Processed = "No"
    ) & "</b> item(s) in T&E to validate.</center>"

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Try this maybe?

    "<center>You have <b>" & IsBlank(CountIf(
     AP_Data,
     Requisitioner_x0020_Email = User().Email,
     Processed = "No"
    ),0) & "</b> 
    item(s) in AP and <b>" & IsBlank(CountIf(
     TE_Data,
     'Exp Line Created by Name' = Mid(
     User().FullName,
     Find(
     " ",
     User().FullName
     ) + 1
     ) & ", " & Left(
     User().FullName,
     Find(
     " ",
     User().FullName
     ) - 1
     ),
     Processed = "No"
    ),0) & "</b> item(s) in T&E to validate.</center>"

    ---
    If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

  • Krau5i Profile Picture
    45 on at

    I'm not sure why by I get an 'invalid number of arguments' error. 2 received, 1 expected

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Oops, try this

    "<center>You have <b>" & If(IsBlank(CountIf(
     AP_Data,
     Requisitioner_x0020_Email = User().Email,
     Processed = "No"
    )),0) & "</b> 
    item(s) in AP and <b>" & If(IsBlank(CountIf(
     TE_Data,
     'Exp Line Created by Name' = Mid(
     User().FullName,
     Find(
     " ",
     User().FullName
     ) + 1
     ) & ", " & Left(
     User().FullName,
     Find(
     " ",
     User().FullName
     ) - 1
     ),
     Processed = "No"
    )),0) & "</b> item(s) in T&E to validate.</center>"
  • Krau5i Profile Picture
    45 on at

    No, now the counters don't work (are not shown in the text anymore)... Do you know what the reason for that behavior is? Maybe I should have made this clear earlier: The formula does work perfectly, however, it takes a few seconds for the label to show up. Until then, "Show your HTML text here." is shown which I would like to get rid of.

     

    Regards,

    Tobias 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Oh! Gotcha. In that case, you have a couple options. The first would be to load those data sets on your App's OnStart property so that they're loaded in before the user sees anything, or you can try setting the HtmlText box Visible property to this:

    Not(IsBlank(HtmlText1.HtmlText))

    Not sure why it's showing that default HTML text when that's not your HtmlText property value.

    Anyway, if one of those options don't work let me know.

    ---
    If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

  • Krau5i Profile Picture
    45 on at

    Hm what exactly would you include in the OnStart property? My concern is that this CountIf formula will be updated during the use of the app. I tried to set the visible property to your suggestion but it did not change the app's behavior. 

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I feel like I'm overthinking this. I'm going to try to think on it. In the meantime, you can try setting the HTML text box's Visible property to this:

    HtmlText1.HtmlText <> "Show your <b><font color=blue>HTML</font></b> text here."
  • Krau5i Profile Picture
    45 on at

    This worked perfectly. Thanks!

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard