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 / When information colum...
Power Apps
Answered

When information column from SP is YES, make visible other text

(0) ShareShare
ReportReport
Posted on by 672 Season of Giving Solutions 2025
Hi!
 
So what I want is, when users search for an item (which is on a row in a SharePoint list), if one of the columns says yes (like "Is there Attachments"), If the column is Yes, make visible like the link or the attachment.
If the highlited text in the left is no, the highlighted text in the right shouldn't appear. But if it's yes, it shows the attachment or link or whatever, because the column information in the SharePoint will contain information, if not blank. But I don't know if its better to use text label or other things to insert it in the container.
Categories:
I have the same question (0)
  • Suggested answer
    MS.Ragavendar Profile Picture
    6,078 Super User 2026 Season 1 on at
     
    Created one label - "Attachment Exists - "&ThisItem.'Has attachments'
     
     
    Left Label
     
    Visible -  If(ThisItem.'Has attachments',true,false)
     
     
     
    Right Label
     
    Visible -   If(ThisItem.'Has attachments',false,true)
     
     
     
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
  • Charlie Martharper Profile Picture
    672 Season of Giving Solutions 2025 on at
     
    I was looking into your answer and I have some comments and questions. 
    In my case, a column in the SP list, will tell if it has attachments (preparation) or not. So, the first label, wouldn't need it, that would be the left one. If that is yes, then show the right label, if not, right label remains hiding.
    So I suppose that I should link the answer into the column answer in the SharePoint. Well, all of them in the end.
     
    Would this change a bit your answer? Or still remains the same?
     
    I have to do the same with other text, but with Open/Closed, if open doesn't show the other text, and if closed, show the text.
     
  • MS.Ragavendar Profile Picture
    6,078 Super User 2026 Season 1 on at
     
    In my case, a column in the SP list, will tell if it has attachments (preparation) or not. So, the first label, wouldn't need it, that would be the left one?
    • Are you referring the label  "Attachment Exists - "&ThisItem.'Has attachments'.
    • This column i have showed to distinguish how the values are rendering when there is attachment / no attachment. You can ignore if you already having the column related information exists in your case.
     
    Rest of the points which you explained is not clear for me can you give us the column details and rendering details in much more simple so that i can able to replicate and provide the solution.
  • Charlie Martharper Profile Picture
    672 Season of Giving Solutions 2025 on at
     
    The first label "Attachment Exists - "&ThisItem.'Has attachments'. I wouldn't need it
    In my case, "Requereix preparació" is the "Has attachments" where it will go Yes/No (column in SP list), so this has to be always visible.
    So, if it's yes, the item in that list will have attached the files and it will be shown below the label "Documentació de preparació", in your example is: 
    Right Label
     
    Visible -   If(ThisItem.'Has attachments',false,true)
     
    But if the "Requereix preparació" is no, then that last part wouldn't appear because no attachments in the item.
  • Verified answer
    MS.Ragavendar Profile Picture
    6,078 Super User 2026 Season 1 on at
     
    Got it — you don’t need the first label, and “Requereix preparació” (a Yes/No column in your SharePoint list) must always be visible.
     
    Then “Documentació de preparació” should only appear when Requereix preparació = Yes and the item actually has attachments.
  • Charlie Martharper Profile Picture
    672 Season of Giving Solutions 2025 on at
     
    Exactly, because when they start looking into the filters, it will appear information related to the thing they are looking into the combo boxes.
     
    That information is a full row item in the SharePoint list. So when they start looking into it, it will show more information and one of this is if that item has attachments or not and if it has, show it to the user.
     
    Sometimes the item will have an attachment and sometimes it won't.
  • Charlie Martharper Profile Picture
    672 Season of Giving Solutions 2025 on at
     
    I am trying to re do this, and I am having issues with this: I am getting that from the gallery from the left and then, it will show me yes or no in the container where it says "Es requereix preparació, if yes, show the icon, and when clicking the icon open a container with the attachments. If no, hide it.
    So I am trying to hide if the column "es requereix preparació" is "No" in the SP type column "yes/no" from the gallery selection:

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard