title: Hide input if specific input has value
body: <p>I would like to hide input if other input has value. I am using <a href="https://github.com/marmelab/aor-dependent-input#installation" rel="nofollow noreferrer">https://github.com/marmelab/aor-dependent-input#installation</a> this package which I hope should solve my problem.</p>
  
  <p>I have already tried some combination of usage code provided, but I dont understand how to set it properly.</p>
  
  <p>EDIT note: component={ReferrenceSelectBox} is my custom component</p>
  
  <pre><code>const checkRecord = (record) =&gt; record.LocationId;
  </code></pre>
  
  <pre><code>         &lt;DependentInput resolve={checkRecord}&gt;
              &lt;Field name="ComputerId" label="Computer" source="ComputerId" reference="PC" component={ReferrenceSelectBox}/&gt;
           &lt;/DependentInput&gt;
           &lt;Field name="LocationId" label="Location" source="LocationId" reference="Location" component={ReferrenceSelectBox}/&gt;
        &lt;/SimpleForm&gt;
  </code></pre>
  
  <p>Basicaly, if ComputerId has value hide LocationId field, if LocationId has value hide ComputerId. It should be easy, but can't figure it out</p>
  
  <p>Any ideas?</p>