About this sample
This sample demonstrates using the indexOf function (O365 only) to test if text starts with a given value. Using the international calling code at the start of a phone number, the correct country's flag is shown next to the phone number. The same nested conditionals are also used for the tooltip.
Products & metadata
SharePointMicrosoft ListsColumnSharePoint OnlineGeneralindexOfColumn Formatting