0

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

1

Use this:

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

Output:

enter image description here

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

Your Answer

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

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