diff --git a/uw_cfg_common.module b/uw_cfg_common.module index 94e1c4e1ea4f8104804474de57c567d6c6ac83c3..0cd525a8c1e31bb44d8195f1c26d3fcabb2059ee 100644 --- a/uw_cfg_common.module +++ b/uw_cfg_common.module @@ -910,6 +910,17 @@ function uw_cfg_common_form_alter(array &$form, FormStateInterface $form_state, ], ], ]; + + // Set the states for the banner. + $form['group_banner_settings']['#states'] = [ + 'visible' => [ + [ + 'select[name="field_uw_type_of_media"]' => [ + ['value' => 'banner'], + ], + ], + ], + ]; } // If we are on the media upload form, we want to restrict