How do I make a form field go back invisble after I uncheck a radio button?
Hello try this ... 

$form['field_prestation_walk']['#states'] = [
  'visible' =&gt; [
    ':input[name="field_prestation_type"]' =&gt; [
        'value' =&gt; 'walk'
      ],
    ]
  ];