Skip to main content
These components are used in Caseflow templates to render and edit individual fields, relations, and documents.

EditableField

Edit a single attribute in the current object context with type-aware editing, validation, datasets, and change automation.

Key capabilities

  • Automatic type inference from metadata
  • Explicit type override
  • Static and dynamic datasets
  • Regex and named validator support
  • Required field enforcement
  • Change-triggered actions
  • Autofill script integration

Props

DatasetConfig shape

Examples

Dynamic dataset:
Validation with change action:
Transient field as template selector:
Change automation with guard condition:
Dynamic dataset with refresh support:

RelatedObject

Render or edit a related object through a relation attribute. You can use it to display related data via a template or inline with child components.

Key capabilities

  • View mode — renders the related object using a template
  • Inline mode — uses child components directly for editable nested layouts
  • Registers an alias for cross-template reference via {{alias.Field}}

Props

Examples

Alias-based cross-reference:
Inline editing:

RelatedDocument

Render a document-type attribute as a read-only linked or previewed document.

Props

Example

Inline preview:

RelationPicker

Select or create a related object for a relation attribute with a searchable dropdown.

Key capabilities

  • Searchable relation dropdown
  • Optional create modal (allowCreate)
  • Constraints and sorting for dropdown candidates
  • onChanged and onCreated actions
  • Full selected object context (${selectedObject}) for auto-population
  • Nested relation traversal in runtime expressions

Props

Examples

Auto-populate from selected object:
Nested relation traversal:
Constraints and sorting:

Shared utility components

These components are also available in Caseflow templates:

Example