**Source URL:** https://general.veevavault.dev/clinical/mdl/component-types/docfielddependency.md

# Docfielddependency

**Class: ** `metadata`

Dependent fields allows you to configure a relationship between a controlling field and one or more controlled or dependent fields.

Learn about <a href="https://platform.veevavault.help/en/lr/2617" target="_blank">Dependent Fields in Vault Help</a>.

| Attribute | Metadata | Description |
| --- | --- | --- |
| doctype | Type: Component | The Doctype the field dependency applies to. |
| docfield | Type: Component | The Docfield the field dependency applies to. |
| docfield_multi_value | Type: StringMax length: 2147483647Multi-value | Specifies the field value or values that trigger the action. |
| docfield_value | Type: StringMax length: 2147483647 | Specifies the field value that triggers the the action. This attribute cannot support individual values containing a comma, for example, “Tanzania, United Republic of”. This attribute is deprecated as of 19R2.3. |
| deprule_docfield | Type: ComponentRequired | Specifies the Docfield the dependency rule applies to. |
| deprule_docfield_action | Type: EnumRequiredAllowed values:isHiddenisReadOnlyisVisibleisRequiredpicklist | The action applied. Specifies the actions to take on the field values. |
| deprule_docfield_multi_values | Type: StringMax length: 2147483647Multi-value | The value(s) available when deprule_docfield_action is picklist. |
| deprule_docfield_values | Type: StringMax length: 2147483647 | The value(s) available when deprule_docfield_action is picklist. This attribute cannot support individual values containing a comma, for example, “Tanzania, United Republic of”. This attribute is deprecated as of 19R2.3. |
| lifecycle | Type: StringMax length: 2147483647 | The Doclifecycle the dependency rule applies to. |
| state | Type: StringMax length: 2147483647 | The Doclifecycle state the dependency rule applies to. |
| role | Type: StringMax length: 2147483647 | The Doclifecycle role the dependency rule applies to. |

### 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:** [Docfield](/clinical/mdl/component-types/docfield)  
**Next:** [Docfieldlayout](/clinical/mdl/component-types/docfieldlayout)