How to Fix Invalid SharePoint Conditional Formulas in Forms
Question details
Users encounter an 'invalid conditional formula' error in SharePoint when trying to show or hide a column, despite the logic appearing mathematically correct.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Applying conditional formatting in SharePoint item forms to dynamically show or hide columns based on the values of other fields.
- Observed behavior
- SharePoint rejects the formula as invalid, or the formatting fails to apply to the list view as the user initially expected.
Before editing your SharePoint form, ensure you have the exact internal name of the field you want to reference, as using the display name will cause the formula to fail.
Apply Correct Form Formatting Syntax
Use the exact syntax required by SharePoint form formatting, which includes lowercase logical operators and single quotation marks.
SharePoint conditional formulas for forms have strict syntax requirements that differ from Excel. The formula must use the field's internal name enclosed in brackets with a dollar sign, lowercase logical operators (like 'if' instead of 'IF'), and single quotes for text strings. Additionally, these show-and-hide rules only apply to the item form itself, not the default list view.
Navigate to your SharePoint list and click on the 'New' button to open the item creation form.
Click the 'Edit form' icon at the top right of the form pane and select 'Edit columns' from the dropdown menu.
Hover over the specific column you want to dynamically show or hide, click the three dots (More options), and select 'Edit conditional formula'.
Enter your formula using a lowercase 'if' and single quotes for string values. For example: `=if([$field_8] == 'Reports/Analytics', 'true', 'false')`. Returning 'true' shows the column, and 'false' hides it.
Click 'Save' at the bottom of the formula pane, then test the form by changing the trigger field to ensure the target column shows or hides correctly.

Looking for a Lightweight Alternative for Document Management?
While SharePoint and Microsoft Office handle complex list formatting and enterprise intranet needs, WPS Office offers a streamlined, free alternative for your everyday document, spreadsheet, and presentation creation. It features an intuitive interface and allows for seamless migration from other platforms.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install the Software: Run the installer and follow the on-screen prompts to set up WPS Office on your computer.
- 3. Open and Edit Documents: Launch WPS Office to instantly open, edit, and save your existing Microsoft Office files without formatting loss.

Frequently Asked Questions
Why does my SharePoint formula work in Excel but not in SharePoint forms?
SharePoint form formatting requires specific syntax that differs from Excel. Forms require lowercase operators like 'if' and single quotes (') for text values, whereas Excel formulas typically use uppercase 'IF' and double quotes (").
Can I use conditional formulas to hide columns in the SharePoint list view?
No, conditional formulas applied via the 'Edit columns' menu only affect the item form (when creating, viewing, or editing an individual item). To change column visibility in the list view, you must edit the current list view settings or use JSON view formatting.
How do I show a column based on multiple conditions?
You can nest conditional logic or use logical operators like '&&' (AND) or '||' (OR). For example: `=if([$Status] == 'Active' && [$Category] == 'IT', 'true', 'false')`.
What happens if I rename my SharePoint column?
Renaming a column changes its Display Name, but its Internal Name remains exactly what it was when it was first created. Your conditional formulas must continue to use the original Internal Name, or they will return an error.




