Display field in TCA of pages based on the previous field value
问题 I would like to achieve that my field in TCA will be shown or hidden based on my previous field value. How can I do that? I can do it in javascript, but is possible to include a javascript in TCA? Here user choose value: $fields = array( 'question_field' => array( 'label' => 'user choose', 'config' => array( 'type' => 'select', 'items' => array( array('Yes','1'), array('No','0'), ), ), ) ); if the value is yes, i would like to display second field: $fields = array( 'second_field' => array(