hiding field -reference option limit
have you try any alter functions to implement ?
if you can try with alter then try #states in hook_form_alter() to hide field, if primary field default value is empty/null.
here is e.g
/**
 * @param type $form
 * @param type $form_state
 * @param type $form_id
 * Implements hook_form_alter()
 */
function hook_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  if ($form_id == 'form_id') {
    // Hide secondary field.
    if (isset($form['secondary_field'])) {
      $form['secondary_field']['#states'] = [
        'visible' =&gt; array(
          'input[name=&quot;primary_field&quot;]' =&gt; array('!value' =&gt; ''),
        ),
      ];
    }
  }
}

'input[name=&quot;primary_field&quot;]' =&gt; array('!value' =&gt; ''), change this as per need i.e if its select list then 'select[name=&quot;primary_field&quot;]' =&gt; array('!value' =&gt; ''), etc.
hope this will solve your issue.