If Select input field has Different values so according to them hide and show another fields
$form['field_discipline']['#states'] = [
'invisible' => [
'select[name="field_graduation"]' => ['value' => '_none']
]
];
Comments
Post a Comment