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 Apps
Unanswered

HTML in gallery

(0) ShareShare
ReportReport
Posted on by 3

Hello everyone hope you're all are safe.

I'm building a PowerApps screen and i used a gallery to display the items in a Sharepoint list and everything works just fine. I added HTML code to display/download the items in the gallery as well but i want it to display selected items only, not all items. Hope that makes sense 

Here's my HTML:

 

 

"

<!DOCTYPE html>
<html dir=rtl>
<head>

 <meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"" />
</head>
<body > 

<table style=
 width:100%; > 
 <tr> 
 <td style=' width:80px'> 
 style='width:80%'> 
</td> 



 <td> <center> 

 <br>
 <div>
 <div>
 <div>
 <div border-bottom:solid 1px #DDD; display:flex; height:64px; padding-left:24px; padding-right:14px' height='64'>
 <div style='color:#000; font-size:20px'> ترشيح الطلاب</div> <div style=' margin-left:auto'>
 <br> <div style='color:RGBA(11, 11, 59, 1); font-size:20px'> ( "&Dropdown1.Selected.Value&" )</div>
 </div>
 </div>
 </center> </td> 


 </tr></table>

 

 <br><br>

 <table style='table-layout:auto; width: 100%; border-collapse:collapse; border: 1px solid #313131 '>
 <thead style='background:#E5EDC9; -webkit-print-color-adjust: exact' table .absorbing-column {
 width: 100%; #table{
 max-width: 2480px;
 width:100%;
 }
 #table td{
 width: auto;
 overflow: hidden;
 word-wrap: break-word;
 }> 
 
 <td style='border: 1px solid #313131; font-size:15px'> الإسم بالعربية</td>
 
 </thead> 
 <tbody>
"&Concat(المسجلون.AllItems, "<tr> 
<td style='border: 1px solid #313131; font-size:15px'> "& Title &" </td> 
<td style='border: 1px solid #313131; font-size:15px; background: #F6F8FB'> "& mainCountry.Value &"</td> 


</tr> " )&" 


 </tbody>
 </table> "

 

 

 

Categories:
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @BushraEisa 

     

    Can you please share more details about the configuration in your application, maybe through some screenshots?

     

    By default, you can only select one item one item in a gallery control, in case you want to select multiple items inside a gallery you can follow: https://www.agarwalritika.com/post/select-multiple-items-in-a-power-apps-gallery-canvas-apps

     

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • BushraEisa Profile Picture
    3 on at

    Thank you Yashag2255 for your response.

    I was able to accomplish it by adding the HTML editor inside the gallery and adding "ThisItem." so it would only show the selected item not all items.

    I also added a different color to the TemplateFill to distinguish the selected item.

    Here's my updated HTML

     

    <td style='border: 1px solid #313131; font-size:15px'> "& ThisItem.Title &" </td> 
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @BushraEisa 

     

    Were you able to resolve the issue? If not, please share more details maybe with some screenshots so that we will be able to help you better.

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. 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 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard