From 6738905ae28718eb8d08dd2713f5a32a34a252af Mon Sep 17 00:00:00 2001 From: abaghdasaryan Date: Mon, 4 Sep 2023 10:16:57 +0400 Subject: [PATCH] Conditional fields logic --- ...aragraph.org_section_long_form.default.yml | 42 +++++++++++++++++-- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/conf/drupal/config/core.entity_form_display.paragraph.org_section_long_form.default.yml b/conf/drupal/config/core.entity_form_display.paragraph.org_section_long_form.default.yml index cf8e424092..86283e8d85 100644 --- a/conf/drupal/config/core.entity_form_display.paragraph.org_section_long_form.default.yml +++ b/conf/drupal/config/core.entity_form_display.paragraph.org_section_long_form.default.yml @@ -10,6 +10,7 @@ dependencies: - field.field.paragraph.org_section_long_form.field_show_in_org_navigation - paragraphs.paragraphs_type.org_section_long_form module: + - conditional_fields - field_group - paragraphs third_party_settings: @@ -48,14 +49,14 @@ mode: default content: field_hide_heading: type: boolean_checkbox - weight: 3 + weight: 1 region: content settings: display_label: true third_party_settings: { } field_org_navigation_jump_link_t: type: string_textfield - weight: 2 + weight: 3 region: content settings: size: 60 @@ -78,6 +79,22 @@ content: effect: show effect_options: { } selector: '' + 8904d857-aaf7-4b63-a912-979bf8b877f0: + entity_type: paragraph + bundle: org_section_long_form + dependee: field_hide_heading + settings: + state: '!visible' + condition: checked + grouping: AND + values_set: 1 + value: '' + values: { } + value_form: + value: false + effect: show + effect_options: { } + selector: '' field_section_long_form_content: type: entity_reference_paragraphs weight: 3 @@ -100,11 +117,28 @@ content: third_party_settings: { } field_show_in_org_navigation: type: boolean_checkbox - weight: 1 + weight: 2 region: content settings: display_label: true - third_party_settings: { } + third_party_settings: + conditional_fields: + 1d4a1e14-f418-45fb-8b2a-973eff119681: + entity_type: paragraph + bundle: org_section_long_form + dependee: field_hide_heading + settings: + state: '!visible' + condition: checked + grouping: AND + values_set: 1 + value: '' + values: { } + value_form: + value: false + effect: show + effect_options: { } + selector: '' hidden: created: true status: true