Microsoft Lists: How to use values in columns not displayed on the form for display conditions and form formatting

Microsoft Lists: How to use values in columns not displayed on the form for display conditions and form formatting

Introduction

In Microsoft Lists forms, you can set display conditions for each column and use JSON to display column values in the header or footer.

Example display condition and header settings

However, these customizations are limited to columns included in the form. This means you cannot use values from columns not included in the form for display conditions or to display them in the header or footer.

Edit columns panel

Example of not including columns in the form

Nonetheless, there may be cases where you want to use values from columns not displayed on the form for display conditions or to show them in the header or footer. For example, there might be columns that are only updated by Power Automate or PowerShell and are not displayed on the form to avoid editing, but you still want to use these columns for display conditions.

In this article, I will show you how to use values from columns not displayed on the form for display conditions and to display them in the header or footer.

How to Use Values in Columns Not Displayed on the Form for Display Conditions and Form Formatting

You can use the values of columns included in the form for display conditions, headers, and footers. In other words, if you include a column in the form but always hide it, you can use its value.

Here are the steps to include a column in the form while keeping it always hidden:

  1. Open the form

  2. At the top of the form, select Edit form > Edit columns

  3. Check the columns you want to use for display conditions, the header, or the footer to include them in the form

  4. Select options menu (︙) > Edit conditional formula

  5. Set the following expression in the conditional formula:

    false
    
  6. Select Save

    Steps to include a column in the form while keeping it always hidden

With these steps, you can set columns to be always hidden while using their values for display conditions, the header, or the footer.

Example of including columns in the form

Additional Notes

  • If you hide a column from the form, you cannot edit the column value from the form, but you can edit it in Edit in grid view. If you want to prevent this, set Quick property editing to “No” from the list settings.

    Quick property editing

  • Please note that even if a column is hidden from the form, it can still be updated through the API.

  • List Formatting Samples provides JSON samples for customizing the header and footer of forms.