title: Automatically open document when only one document is listed in repeat control
body: <p>I have a repeat control for a domino view which displays the results from a search field.</p>
  
  <p>As you type more characters into the search field the number of items in the list is reduced. If/When the the list only contains a single item I would like to open item automatically, without having to click the link.</p>
  
  <p>Any ideas are appreciated.</p>
  
  <p>Edit: after some very interesting responses, here are some screenshots</p>
  
  <p>I have 3 elements on the page, a searchbar, a repeat control and a form:</p>
  
  <p><img src="https://i.stack.imgur.com/CuxkN.jpg" alt="enter image description here"></p>
  
  <p>When I start typing in the search bar, the repeat is refreshed with every keystroke:</p>
  
  <p><img src="https://i.stack.imgur.com/MR4XB.jpg" alt="enter image description here"></p>
  
  <p>the list is reduced, typing the next character ...</p>
  
  <p><img src="https://i.stack.imgur.com/A6GH0.jpg" alt="enter image description here"></p>
  
  <p>again the list is reduced, only 2 left, typing again....</p>
  
  <p><img src="https://i.stack.imgur.com/Tqbto.jpg" alt="enter image description here"></p>
  
  <p>Only one left, now it would be time to open the document in the form ..... without clicking the link.</p>
  
  <p>I've tried several events on the page, but it seems that I could not find the one that will allow me to "select" the document and display the data in the form.</p>
  
  <p>It seems that it's not as simple as I thought</p>