title: Filter lookup inside a Dialog- CRM 2015 Online
body: <p>How can we filter a lookup that is in a page of the dialog process. 
  E.g. I have a lookup to "incident" on Prompt and Response, I would like to filter it based on the value of a field in incident entity. </p>
  
  <p>I tried:</p>
  
  <ul>
  <li><p>Creating new views, also setting it as default.</p></li>
  <li><p>addPreSearch and addCustomFilter on the field on the form(Not sure how to use these scripts inside the Dialog)</p></li>
  </ul>
  
  <p>Any Ideas ?</p>
  
  <p>Thanks you</p>