cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mrstian89
Helper III
Helper III

HTML text showing placeholder before fully loaded

Hi!
In a form to display information on specific items, I am using HTML-text.

 

When opening this screen, before det form is fully loaded, I see the hideous "standard HTML text" on the screen.

It does not last for too long, but enough for it to be annoying.

 

I have the following code for HtmlText:

If(
    CountRows(Filter('List',Location = myLocation && ItemNo = Value(DatacardItemNo.Default))) > 1,
"<b><p style ='text-align:left'>" & "ID:</b> " & ThisItem.ItemNo & " (duplicate)</p>",
"<b><p style ='text-align:left'>" & "ID:</b> " & ThisItem.ItemNo & "</p>"
)

 

Fill:

If(
    CountRows(Filter('List',Location = myLocation && ItemNo = Value(DatacardItemNo.Default))) > 1,Red,RGBA(255, 255, 255, 0)
)

 

I guess it is due to the Datacard loading a little slow, but is there any way to rewrite this to make it not display the HTML-placeholder default text? 

1 ACCEPTED SOLUTION

Accepted Solutions
shoog
Solution Specialist
Solution Specialist

You could hide the html text when the data is not loaded yet.

Try setting the visible property of the html text control to !IsBlank(DatacardItemNo.Default)

View solution in original post

1 REPLY 1
shoog
Solution Specialist
Solution Specialist

You could hide the html text when the data is not loaded yet.

Try setting the visible property of the html text control to !IsBlank(DatacardItemNo.Default)

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,244)