feat(#13): Show form elements depending on other form element values

This commit is contained in:
2025-11-30 18:10:51 +01:00
parent 79fbf7ce1b
commit 9dc690715b
19 changed files with 1187 additions and 116 deletions

View File

@@ -62,12 +62,17 @@ create table form_element_options
create table form_element
(
form_element_order integer,
type smallint not null check (type between 0 and 5),
form_element_sub_section_id uuid not null,
id uuid not null,
description varchar(255),
title varchar(255),
form_element_order integer,
type smallint not null check (type between 0 and 5),
form_element_sub_section_id uuid not null,
id uuid not null,
condition_type varchar(255) check (condition_type in ('SHOW', 'HIDE')),
description varchar(255),
expected_value varchar(255),
operator varchar(255) check (operator in ('EQUALS', 'NOT_EQUALS', 'IS_EMPTY', 'IS_NOT_EMPTY')),
reference varchar(255),
source_form_element_reference varchar(255),
title varchar(255),
primary key (id)
);
@@ -165,4 +170,4 @@ alter table if exists form_element_sub_section
alter table if exists notification
add constraint FKeg1j4hnp0y4lbm0y35hgr4e8r
foreign key (recipient_id)
references app_user
references app_user;