I have a SharePoint list where I'm creating a custom galley view. The list contains a yes/no column (named isOwner) which defines if a listed team member is owner or not.

In the JSON for the galley view I now want to display text according to the setting in the yes/no column. If the value is set to yes (true) it should write 'Captain', else 'Crew'. But it always displays 'Crew' no matter which condition I choose.

My code so far:

"txtContent": "=if([$isOwner] == true, 'Captain', 'Crew')"

1 Answer 1


Use this:

"txtContent": "=if([$isOwner], 'Captain', 'Crew')"


enter image description here

  • So quick and easy. Thx
    – Der_Fab
    Apr 12, 2021 at 10:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.