Others

Fix SharePoint List Form Conditional Formula Using a Lookup Field

Maira MehtabMaira Mehtab Oct 28, 2026 868 views

Question details

The user needs to configure a conditional formula in a SharePoint list form using a lookup field to dynamically show or hide a column.

How to Fix SharePoint List Form Conditional Formula Using Lookup Fields
Product
Microsoft SharePoint
Device & OS
not provided
Scenario
Setting up form-formatting configurations to conditionally display list columns based on a selected lookup field value.
Observed behavior
The conditional formula fails to open the target column when comparing the lookup field with text values or IDs, even when using substring functions.
Before you start

Ensure you have the exact internal field name of your lookup column, as formulas will fail if they reference the display name instead of the internal name.

Solution 1Recommended

Use Direct Text Comparison Without Boolean Quotation Marks

Fix formula syntax errors by referencing the lookup value directly and removing quotation marks around TRUE and FALSE boolean results.

SharePoint conditional formatting is highly sensitive to syntax. Using double quotation marks around text values can sometimes cause save errors depending on your regional settings or formatting context. Switching to single quotes and removing quotes entirely from boolean outputs resolves most formula evaluation failures.

1
Access list form formatting

Navigate to your SharePoint list, open the form you want to customize, and access the conditional formatting configuration pane for the specific column.

2
Input the correct formula syntax

Enter the formula comparing the lookup field directly to the text value. Use single quotes for the text value and omit quotes for the boolean results, for example: =IF(OU='Customer Service',TRUE,FALSE).

3
Save and verify internal names

Save the formula. If it still fails, check the list settings to verify the internal field name of your lookup column and ensure the lookup is returning text rather than an ID (like OU:ID).

4
Test the form behavior

Add a new record or edit an existing one to test whether selecting the target lookup value successfully triggers the column to appear.

Use Direct Text Comparison Without Boolean Quotation Marks
Single vs. Double Quotes: If the formula interface refuses to save your input, changing double quotes (") to single quotes (') around your text string is often the necessary fix.
Free Microsoft Office alternative

Looking for a Lightweight, Reliable Office Suite? Try WPS Office

While SharePoint configuration requires Microsoft-specific troubleshooting, you don't need heavy subscriptions for your everyday document tasks. WPS Office provides a free, lightweight, and highly compatible alternative for word processing, spreadsheets, and presentations.

  1. 1. Download the installer: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Run the setup: Open the downloaded installation file and follow the straightforward on-screen instructions.
  3. 3. Start creating: Launch WPS Office to immediately begin creating, editing, and saving your documents in familiar formats.
Fully compatible with Microsoft Excel, Word, and PowerPoint formats.Free to use with a lightweight installation that won't slow down your device.Familiar tabbed user interface ensuring a seamless migration with zero learning curve.Built-in advanced PDF editing, splitting, merging, and conversion tools.
QA img-9

Frequently Asked Questions

Why does my SharePoint conditional formula refuse to save?

Formulas often fail to save due to minor syntax errors. Common issues include using double quotation marks instead of single quotation marks around text strings, missing parentheses, or wrapping Boolean results (TRUE/FALSE) in quotation marks.

How do I find the internal name of a SharePoint column?

Go to your List Settings and click on the specific column name. Look at the URL in your browser's address bar; the text immediately following 'Field=' is the exact internal name you must use in your formulas.

Should I use the lookup ID or the text value in conditional formulas?

It is generally recommended to start by referencing the text value directly using standard formula evaluation. If that fails due to how the lookup is structured, you may need to use advanced JSON formatting to reference the ID property (e.g., [$FieldName.lookupId]).