Fix SharePoint Column Conditional Formatting Not Displaying FAIL Correctly
Question details
The user needs to correct a SharePoint calculated column's JSON conditional formatting that incorrectly displays a check mark and hides the text for a 'FAIL' status.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Customizing SharePoint list column views using JSON conditional formatting to display status icons and text.
- Observed behavior
- Instead of showing a red warning icon, the 'FAIL' status hides the text and displays a check mark.
Ensure you have the exact calculated-column formula and the complete JSON code copied to your clipboard, as you will need to review the syntax or provide it to developers for troubleshooting.
Seek specialized JSON support on Microsoft Q&A
Since advanced JSON formatting falls outside standard built-in feature support, the most effective resolution is consulting the dedicated SharePoint customization community.
SharePoint's built-in formatting tools cover basic rules, but custom JSON scripts require developer-level troubleshooting. Posting your code in the right technical forum ensures that specialized engineers can diagnose the syntax errors causing the incorrect icon display.
Open your web browser and go to the official Microsoft Q&A website.
Click on 'Ask a question' and thoroughly describe the behavior where 'FAIL' shows a check mark instead of the warning icon.
Tag your post with 'SharePoint Online' and 'SharePoint customization' to reach the correct support team.
Paste your complete calculated-column formula and the JSON formatting code so reviewers can identify the logic flaw.

Review your JSON logic for incorrect icon mapping
Manually verify if the 'txtContent' or 'iconName' properties in your JSON code are incorrectly mapped for the 'FAIL' condition.
Manage Your Spreadsheets and Data Easily with WPS Office
If dealing with complex JSON coding in SharePoint is slowing down your workflow, consider using WPS Office for your data tracking. WPS Spreadsheet provides a lightweight, highly compatible, and free alternative with intuitive built-in conditional formatting that requires absolutely no coding.
- 1. Download WPS Office: Visit the official WPS website and download the free suite for your device.
- 2. Open your data file: Launch WPS Spreadsheet and easily open your exported Excel or CSV files from SharePoint.
- 3. Apply conditional formatting: Select your data range, click 'Conditional Formatting' in the Home tab, and set your highlight rules visually.

Frequently Asked Questions
Why does my SharePoint JSON column hide the text when formatting is applied?
This usually happens when the 'txtContent' attribute in your JSON code is either left empty or dynamically overridden by a condition that fails to output the original column value. Ensure 'txtContent' points to '[$YourColumnName]'.
What is the correct JSON icon name for a warning or failure in SharePoint?
To display a red warning or error icon, you typically use '"iconName": "Error"' or '"iconName": "Warning"' in your JSON formatting code, which references the standard Fluent UI icon library used by Microsoft.
Can I use standard conditional formatting without JSON in SharePoint?
Yes, SharePoint offers basic out-of-the-box conditional formatting through the 'Format this column' menu. This allows you to highlight cells and apply background colors based on specific rules without writing any raw JSON code.




