**Source URL:** https://general.veevavault.dev/medical/mdl/component-types/layoutrule.md

# Layoutrule

**Class: ** `metadata`

Layout rules streamline the data entry process by dynamically hiding irrelevant fields and sections on an object record detail page based on business needs.

Learn about <a href="https://platform.veevavault.help/en/lr/51632">Configuring Layout Rules in Vault Help</a>.

| Attribute | Metadata | Description |
| --- | --- | --- |
| displayed_as_required_fields | Type: StringMax length: 1500Multi-value | Lists the fields Vault will display as required (with yellow background color and "*") when the layout rule evaluates to true. |
| displayed_as_readonly_fields | Type: StringMax length: 1500Multi-value | Lists the fields Vault will display as read-only when the layout rule evaluates to true. |
| hide_controls | Type: StringMax length: 1500Multi-value | Indicates the custom control to hide in the layout rule. |
| hide_fields | Type: StringMax length: 1500Multi-value | Indicates the fields to hide in the layout rule. |
| hide_sections | Type: StringMax length: 1500Multi-value | Indicates the sections to hide in the layout rule. |
| hidden_pages | Type: StringMax length: 1500Multi-value | Lists the pages Vault will hide when the layout rule evaluates to true. |
| hide_layout | Type: Boolean | If set to true, Vault hides this layout when the layout rule evaluates to true. |
| focus_on_layout | Type: Boolean | If set to true, Vault displays this layout when the layout rule evaluates to true. |
| expression | Type: StringRequiredMax length: 3900 | A valid expression. |
| active | Type: BooleanRequired | Indicates whether the component is active. |
| order | Type: Number | The relative order of the layout rules on the Layout Rules list page. |
| description | Type: StringMax length: 255 | A general description of the Layout Rule. |
| label | Type: StringRequiredMax length: 40 | UI-friendly string in the Vault’s base language. |

### Supported Operations {#supported-operations}

| Operation | Support |
| --- | --- |
| Create | Yes |
| Recreate | Yes |
| Alter | Yes* |
| Drop | Yes |
| Rename | Yes |
| Describe | Yes |
| Generate Recreate | Yes |
| Queryable | No |
**Notes:**

<ul style="padding-left:1.5em;margin-top:0.5rem"><li>**Alter:** <span>MDL Operation may not be supported for some multi-value attributes.</span></li></ul>


---

**Previous:** [Layoutprofile](/medical/mdl/component-types/layoutprofile)  
**Next:** [Lifecyclestatetype](/medical/mdl/component-types/lifecyclestatetype)