Skip to main content

Notifications

Power Platform Community / Forums / Building Power Apps / Skip a HTML Table Row ...
Building Power Apps
Unanswered

Skip a HTML Table Row if data is blank?

Posted on by 14
I'm using a HTML Element to display a table of data that's retrieved from a Sharepoint List.
The HTML table is currently templated for 5 rows of data.
But sometimes only 1 or 2 rows are needed so I'd like to skip blank rows if the first data check is blank.
 
My HTML row looks like this:
<tr>
<td style='width: 93px;'>" & sideGal.Selected.'Name 02:' & "</td>
<td style='width: 120px;'>" & sideGal.Selected.'ID 02:' & "</td>
</tr>
 
 
I assume I need something like:
// This is row 2 inside of already existing HTML so use an ampersand/& to interrupt
& If(!IsBlank(sideGal.Selected.'Name 02:'), [TABLE ROW CODE HERE]) & /* back to HTML */
 
But I'm struggling to combine the Power App code with the HTML.
 
Can anyone assist, please?
Categories:
  • Suggested answer
    Nandit Profile Picture
    Nandit 370 on at
    Skip a HTML Table Row if data is blank?
     
    Is there a reason why HTML control is required to display a table?
    You can make use of the Table control and just update the Items property with your SharePoint List.
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 140,745

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,355

Leaderboard