feat(#13): Show form elements depending on other form element values
This commit is contained in:
@@ -1372,6 +1372,9 @@ components:
|
||||
id:
|
||||
type: string
|
||||
format: uuid
|
||||
reference:
|
||||
type: string
|
||||
description: Unique reference key for this form element (e.g., "art_der_massnahme")
|
||||
title:
|
||||
type: string
|
||||
description:
|
||||
@@ -1385,6 +1388,8 @@ components:
|
||||
formElementSubSectionId:
|
||||
type: string
|
||||
format: uuid
|
||||
visibilityCondition:
|
||||
$ref: "#/components/schemas/FormElementVisibilityCondition"
|
||||
|
||||
FormElementSnapshotDto:
|
||||
type: object
|
||||
@@ -1392,6 +1397,8 @@ components:
|
||||
- type
|
||||
- options
|
||||
properties:
|
||||
reference:
|
||||
type: string
|
||||
title:
|
||||
type: string
|
||||
description:
|
||||
@@ -1402,6 +1409,8 @@ components:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/FormOptionDto"
|
||||
visibilityCondition:
|
||||
$ref: "#/components/schemas/FormElementVisibilityCondition"
|
||||
|
||||
CreateFormElementDto:
|
||||
type: object
|
||||
@@ -1409,6 +1418,8 @@ components:
|
||||
- options
|
||||
- type
|
||||
properties:
|
||||
reference:
|
||||
type: string
|
||||
title:
|
||||
type: string
|
||||
description:
|
||||
@@ -1419,6 +1430,8 @@ components:
|
||||
$ref: "#/components/schemas/FormOptionDto"
|
||||
type:
|
||||
$ref: "#/components/schemas/FormElementType"
|
||||
visibilityCondition:
|
||||
$ref: "#/components/schemas/FormElementVisibilityCondition"
|
||||
|
||||
FormOptionDto:
|
||||
type: object
|
||||
@@ -1447,6 +1460,39 @@ components:
|
||||
- SWITCH
|
||||
- TITLE_BODY_TEXTFIELDS
|
||||
|
||||
FormElementVisibilityCondition:
|
||||
type: object
|
||||
required:
|
||||
- conditionType
|
||||
- sourceFormElementReference
|
||||
- expectedValue
|
||||
properties:
|
||||
conditionType:
|
||||
$ref: "#/components/schemas/VisibilityConditionType"
|
||||
sourceFormElementReference:
|
||||
type: string
|
||||
description: Reference key of the source form element to check
|
||||
expectedValue:
|
||||
type: string
|
||||
description: Expected value to compare against the source element's value property
|
||||
operator:
|
||||
$ref: "#/components/schemas/VisibilityConditionOperator"
|
||||
default: EQUALS
|
||||
|
||||
VisibilityConditionType:
|
||||
type: string
|
||||
enum:
|
||||
- SHOW
|
||||
- HIDE
|
||||
|
||||
VisibilityConditionOperator:
|
||||
type: string
|
||||
enum:
|
||||
- EQUALS
|
||||
- NOT_EQUALS
|
||||
- IS_EMPTY
|
||||
- IS_NOT_EMPTY
|
||||
|
||||
####### UserDto #######
|
||||
UserDto:
|
||||
type: object
|
||||
|
||||
Reference in New Issue
Block a user