For the complete documentation index, see llms.txt. This page is also available as Markdown.

AttributeFieldDefaultValueSources

Introduction

AttributeFieldDefaultValueSources define how an AttributeField gets a prefilled value.

Sources use the same priority and empty-value rules as form defaults: the first non-empty value wins, and a field without a usable source is omitted.

Model Definition

Source Types

  • formFieldValue - Copies a value from another form field.

  • systemVariable - Resolves a value from a system variable.

Admin: Create

Create a default value source for an attribute field.

Definition

POST /api/administration/additional-attributes/fields/default-value-sources

Request Keys

Key
Type
Default
Description

source_type*

string

-

Selects one of the supported Source Types.

form_field_id*

integer

-

Target AttributeField ID.

config

object

type default

Source-specific configuration.

source_entity_type

string | null

null

Morph alias for source entity (for field value sources typically formField).

source_entity_id

integer | null

null

Source entity ID (required with source_entity_type).

sort_number

integer

auto

Evaluation order inside one form_field_id.

Keys with * are required.

Behavior

The accepted config keys depend on source_type:

  • formFieldValue

    • no required config keys

  • systemVariable

    • variable_key (required)

    • variable_filter (optional, formatter key)

Example Request

Example Response

Admin: List source form fields

List fields from administrable Forms and TaskTemplates that can provide a formFieldValue default.

Definition

POST /api/administration/additional-attributes/fields/default-value-sources/form-field-value/form-fields

Request Keys

Key
Type
Default
Description

page

integer

1

Result page.

per_page

integer

Server default

Results per page.

filter

object

No filters

Filters applied to available source fields.

Behavior

  • Fields are returned only when the authenticated user can administer their parent Form or TaskTemplate.

  • Each preview uses the field name as title, the localized parent type as sub_title, and the parent title as description.

  • This endpoint uses count-less pagination, so total is null.

Example Request

Example Response

Admin: List source field filters

List filters available for source-field selection.

Definition

POST /api/administration/additional-attributes/fields/default-value-sources/form-field-value/form-fields/filters

Request Keys

Key
Type
Default
Description

filter

object

No filters

Filters applied before the available filter metadata is built.

Example Request

Example Response

Admin: List source field filter options

List the available options for a multi-select source-field filter.

Definition

POST /api/administration/additional-attributes/fields/default-value-sources/form-field-value/form-fields/filters/{filterKey}/options

Route Parameters

Parameter
Type
Description

filterKey

string

Multi-select filter key.

Request Keys

Key
Type
Default
Description

page

integer

1

Result page.

per_page

integer

Server default

Results per page.

filter

object

No filters

Filters applied before option aggregation.

Behavior

This endpoint uses count-less pagination, so total is null.

Example Request

Example Response

Admin: Update

Update an existing default value source.

Definition

PUT /api/administration/additional-attributes/fields/default-value-sources/{defaultValueSource}

Route Parameters

Parameter
Type
Description

defaultValueSource

integer

Default value source ID.

Request Keys

Key
Type
Description

source_type

string

Selects one of the supported Source Types.

form_field_id

integer

New target field ID.

config

object

Source-specific configuration.

source_entity_type

string | null

New source entity type.

source_entity_id

integer | null

New source entity ID.

sort_number

integer

New evaluation order.

Example Request

Example Response

Admin: Delete

Delete an existing default value source.

Definition

DELETE /api/administration/additional-attributes/fields/default-value-sources/{defaultValueSource}

Route Parameters

Parameter
Type
Description

defaultValueSource

integer

Default value source ID.

Example Request

Example Response

Last updated