About this sample
This sample demonstrates using the indexOf function (O365 only) to test if text contains a given value. The sample also uses the toLowerCase function to ensure the contains condition is case-insensitive. In this sample, if the text of the current field contains the word 'dead' a class is applied to turn the text red.
Products & metadata
SharePointMicrosoft ListsColumnSharePoint OnlineGeneralindexOf, toLowerCasems-fontColor-redDarkColumn Formatting