title: semantic form validation - Validation for either one of the fields as non-empty
body: <p>I have a form in which I have 2 fields, ssn and phone. I would like the user to enter anyone of the field. I'm using semantic validation, here is my code, can you please let me know how to validate the form using Semantic?</p>
  
  <pre><code>&lt;form class="ui error form basic segment" role="form" method="POST" action="{{ url('/username/email') }}"&gt;
      &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt;
      &lt;input type="hidden" name="_method" value="patch"&gt;
      &lt;div class="ui info message"&gt;
          Please enter either SSN or phone to email you the username.
      &lt;/div&gt;
  
      &lt;div class="field"&gt;
          &lt;label for="ssn"&gt;SSN&lt;/label&gt;
          &lt;div class="ui icon input"&gt;
              &lt;input type="text" class="form-control" name="ssn" value="{{ old('ssn') }}"&gt;  
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="field"&gt;
          &lt;label for="phone"&gt;Phone&lt;/label&gt;
          &lt;div class="ui icon input"&gt;
              &lt;input type="text" class="form-control" name="phone" value="{{ old('phone') }}"&gt;  
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;input type="submit" value="Email Username" class="ui primary button"&gt; 
  
  &lt;/form&gt;
  &lt;script type="text/javascript"&gt;
        $('.ui.form')
        .form({
          inline : true,
          on: 'blur',
          fields: {
            username: {
              identifier : 'ssn',
              rules: [
                {
                  type   : 'empty',
                  prompt : 'Please enter a SSN'
                }
              ]
            },
          }
        })
      ;
  &lt;/script&gt;
  </code></pre>
  
  <p>`</p>