Skip to main content

Show Cost Fields When Billable

This conditional show/hide uses a SharePoint formula to show the cost fields only when the type is Billable. 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 cost fields depending on the Type.
  • When it shows: The cost fields appear when Type is Billable.
  • When it’s hidden: For any other type they stay off the form, keeping it short. Form-only – it doesn’t block saving.
  • Revealing billing fields only when needed
  • Billable vs non-billable forms
  • Context-aware cost capture
  • Cleaner time entry
  • Formula Type: Conditional Show/Hide
  • Formula Category: Status & Progress
Display nameColumn type
TypeChoice
  1. Create the column the formula reads: Type
  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([$Type] == 'Billable', 'true', 'false')
What does this formula do?

Reveal a group of 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: Type (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.

Show Cost Fields When Billable Formula Example
Show Cost Fields When Billable Formula Example