sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

document that [$fieldName] only works if fieldName is in view

Open plbowers opened this issue 3 years ago • 1 comments

There is a section that explains that I can use [$fieldName] to do conditional formatting based on the value of other columns in my list. However, that section should contain an explanation that if fieldName is not part of the current view then this is NOT possible.

So if I have a view with fields A and B and my field A is formatted with style of "=if([$B]=='foo', { 'color': 'red' }, { 'color': 'yellow' })" that will work until I try it in a view of that list that does not contain column B. At that point I will always get yellow - just as if I used "=if([$NonexistentField]=='foo', ...)".


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

plbowers avatar Oct 10 '22 17:10 plbowers

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Oct 10 '22 17:10 ghost

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

ghost avatar Jan 06 '23 18:01 ghost