Skip to main content

Hide Field When Inactive

This conditional show/hide uses a SharePoint formula to show a field only while the status is Active, collapsing it otherwise. Applied as a conditional show/hide formula on the form, it reveals or hides the field based on what the user selects - note this uses SharePoint's JavaScript-style formula syntax, not the classic Excel-style one.
Built with
Features
Choice Column, Conditional Show/Hide
Category
Formulas

Want one like this?

Talk to Greg
  • What it does: Shows or hides the field on the form depending on the Status.
  • When it shows: The field appears while Status is Active.
  • When it’s hidden: Any other status hides it, keeping the form short. This only changes the form’s layout – it doesn’t block saving or change data.
  • Hiding irrelevant fields for inactive records
  • Simpler forms
  • Status-driven layouts
  • Reduced clutter
  • Formula Type: Conditional Show/Hide
  • Formula Category: Status & Progress
Display nameColumn type
StatusChoice
  1. Create the column the formula reads: Status
  2. Add or edit a few items so there is data for the formula to work with
  1. Open the list and choose Edit form (or New/Edit form, then Edit)
  2. Select the field you want to control, then choose Edit conditional formula (Show/hide field)
  3. Paste the formula below – note the [$InternalName], == and && syntax
  4. Save the form, then test it by changing the trigger field
=if([$Status] == 'Active', 'true', 'false')
What does this formula do?

Collapse irrelevant fields. It runs on the form, showing or hiding the field based on the trigger value.

Which columns do I need to set this up?

You need: Status (Choice). The formula reads these to produce its result.

Why is this formula syntax different from the others?

Show/hide formulas use SharePoint’s JavaScript-style syntax – [$InternalName], == for equals, && for and – rather than the Excel-style syntax used by calculated columns and validation.

If LookBook 365 is code-free and out-of-the-box, why does this example use a formula?

A SharePoint formula is native, declarative configuration, not custom development. It only works with the item’s own fields and simple logic – it cannot run scripts, reach external services, or change other data, and nothing is deployed to your tenant. It keeps working through Microsoft updates. If you would rather not set this up yourself, this is exactly the kind of thing I configure for clients.

Hide Field When Inactive Formula Example
Hide Field When Inactive Formula Example