You can use the g_form.setVisible(‘fieldname’, ‘value’); method to show/hide a field using client script.