Showing results for 
Search instead for 
Did you mean: 
Advocate I
Advocate I

Conditional visibility sharepoint list item in custom form



I'm trying to get a message to appear in my custom form when a listitem in sharepoint has a certain value, but I can't get it to work. I have a text label, and I want someting like this on the visible property: if( = "george", true, false)

So, only when the name "george" is in the name-column of the sharepoint list I want to see the message in my custom form. The syntax I used in my my example is incorrect, but I don't know what I should do to make it work. For now, the equal sign tells me "invalid argument type".


Can anyone tell me how to do this? 


Thanks in advance

Community Champion
Community Champion



A SharePoint List has zero, one, or more than one record. Therefore you must put the SharePoint List (or ideally, a filtered subset) in a Gallery. Then, an item from the Gallery should be selected. Then, you would use GalleryControl.Selected.YourColumn


Alternatively, instead of using a Gallery, you can do this with no Gallery - do a LookUp to get one record like this:






       ).SomeColumn = "SomeDesiredValue"





Check if it helps @Job_tr 


If you meant the name of the SharePoint List itself, please clarify this -  do you mean that you have multiple SharePoint Lists and you want to check the title of the List data source itself? 



Thanks a lot for your response. In the end it was not the exact answer I was looking for, but it got me on the right track. It turned out that I needed to use ' ThisItem.Name = "George" ' in the visible property of the datacard. And along the way I learned a lot about LookUp.


Thanks again,



Helpful resources

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

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 (2,323)