title: AngularJS retrieve from object based on entry in ng-repeat input
body: <p>This application is for running a writing contest.
  Coodinators are assigning entries to judges for them to judge. I have three sets of data I retrieve from the server, a judge list, an entries list and an assignment list that ties the two together. There can be a variable number of input fields...if a judge has agreed to judge 4 entries, there will be 4 inputs...if 7, then 7.
  I have all of that working OK, but only insofar as the entry number can be input and the data updated.<br>
  Now I would like confirm that the entryID IS a valid ID by checking the list and also to show a field or two on the screen so the coordinator knows that they typed in the right entry.</p>
  
  <p>The relevant section of the HTML</p>
  
  
  
  <pre><code>&lt;div ng-app&gt;
     &lt;div id="assignment" ng-controller="AssignData" ng-init="JudgeID=107;CategorySelect='MS';PublishSelect='P'"&gt;
        &lt;div ng-show="loaded"&gt;
           &lt;form class="entryform ng-cloak" name="assignform" ng-submit="sendForm()"&gt;
              &lt;p&gt;Entry numbers assigned to this judge&lt;/p&gt;
              &lt;p ng-repeat="assign in (formassigns =(assigns | filter:AssignedJudge))"&gt;
                 &lt;input type="text" ng-model="assign.entryid" required/&gt;
                 {{entries.authorname}} {{entries.entrytitle}} 
              &lt;/p&gt;
              &lt;button type="submit"&gt;Save Assignments&lt;/button&gt;
              &lt;p&gt;This will keep the assignments attached to this judge. 
                 You will be able to send all of your assignments to all
                 of your judges when you are finished.&lt;/p&gt;
           &lt;/form&gt;
        &lt;/div&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The part that I haven't been able to figure out is how to make entries.authorname and entries.entrytitle show up when the user types in an entryid that is in entries.entryid.</p>
  
  <p>assigns and entries are both arrays of records using JSON</p>
  
  <p>assigns is JSON made up of assigns.id, assigns.judgeid, assigns.entryid.</p>
  
  <p>entries is JSON made up of entries.entryid, entries.entrytitle, entries.authorname</p>
  
  <p>When assigns arrives, entryid is empty. The form is used to fill in the entryid and when it is filled in, I'd like to be able to show next to it the title and authorname for that entry.</p>