feat(#13): Show form elements depending on other form element values
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user