private function displayLogic()
    {
        if (class_exists('DisplayLogicFormField') && count($this->type_array) > 1) {
            $this->field_list['Root.Main'][5]->hideUnless('Type')->isEqualTo('external');
            $this->field_list['Root.Main'][6]->hideUnless('Type')->isEqualTo('news');
            $this->field_list['Root.Main'][7]->hideUnless('Type')->isEqualTo('download');
        }
    }
private function displayLogic()
    {
        if (class_exists('DisplayLogicFormField') && count($this->type_array) > 1) {
            $this->field_list['Root.Main'][5]->hideUnless('Type')->isEqualTo('external');
            $this->field_list['Root.Main'][6]->hideUnless('Type')->isEqualTo('news');
            $this->field_list['Root.Main'][7]->hideUnless('Type')->isEqualTo('download');
        }
    }
private function displayLogic ( ) { if ( class_exists ( 'DisplayLogicFormField' ) && count ( $ this -> type_array ) > 1 ) { $ this -> field_list [ 'Root.Main' ] [ 5 ] -> hideUnless ( 'Type' ) -> isEqualTo ( 'external' ) ; $ this -> field_list [ 'Root.Main' ] [ 6 ] -> hideUnless ( 'Type' ) -> isEqualTo ( 'news' ) ; $ this -> field_list [ 'Root.Main' ] [ 7 ] -> hideUnless ( 'Type' ) -> isEqualTo ( 'download' ) ; } }
If UncleCheese's module Display Logic is available, upgrade the visible fields!
If UncleCheese s module Display Logic is available upgrade the visible fields!