title: How to Prevent Form Submit/Return Error when Drop Down Field Selections are Identical
body: <p>I am trying to create a Workshop Preference Selection form - users indicate which workshops they are interested in attending during various Sessions at a conference. As we use an algorithm to assign people workshops based on their preferences, we want to make sure that someone select 5 <b>unique</b> workshops per Session. They are allowed to select the same workshop if it is in different Sessions, but cannot have identical Workshops selected from the dropdown menus in each individual Session. None of the code I have attempted to write is having any impact, and I cannot figure out the appropriate route to take.</p>
  
  <p>I tried to create an if x === y statement that would prevent form submission and also generate a explanation after the guilty fields, but to no avail. I'm also struggling with integrating this within the confines of FormAssembly, since I do not have access to edit the raw HTML/actively deployed Javascript, which is why I tried the preventDefault route.</p>
  
  <p>This was my most recent attempt:</p>
  
  <pre><code>$(document).ready(function () {
  
      $("#4734014").submit(function (event) {
          var submit = true;
  
          termsIsChecked = 
          sOneFirst = $("#tfa_4").val();
          sOneSecond = $("tfa_13").val();
  
          if (sOneFirst === SOneSecond) {
              $("#tfa_4").after("&lt;p&gt;Please choose each workshop only once per Session.&lt;/p&gt;");
              submit = false;
          }
  
          if (submit === false) {
              event.preventDefault();
          }
      });
  });
  </code></pre>
  
  <p>Here is the Test Form I've been working with:
  <a href="https://www.tfaforms.com/4734014" rel="nofollow noreferrer">https://www.tfaforms.com/4734014</a></p>
  
  <p>The above code only attempts to prevent form submission if Session 1 First Choice and Second Choice are identical. Rating 1 and Rating 2 (etc.) should be allowed to be identical. Eventually, I'd like First Choice to be prevented from being identical to both Second and Third Choices within Session 1.</p>