Lookup Field Search Question

  • 1
  • Question
  • Updated 3 years ago
  • Answered
Two questions on lookup fields.

1. Is it possible to set the default on the lookup search popup to more than 5 records?

2. Is it possible to display a file in this table. For instance, we have this file field on a custom object called PDF. I can get the file name or URL on to the table, but it cannot be clicked on. This would allow the user to preview the item before selecting it.

Photo of Ryan Denis

Ryan Denis

  • 542 Points 500 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
Ryan,

I think your best option is to add a button that opens a popup window.  Shows the records you want in a table.  Just add a row action that updates the lookup field with the Id of the current row.  With the popup, you can control all of these things.

Thanks,

Bill
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Thanks Bill.   That is a good idea.  Unfortunately the popup table that is behind the magnifying glass is pretty locked down.  In order for the type of customization you are looking for - you'd need a separate action or a custom renderer. 
Photo of Ryan Denis

Ryan Denis

  • 542 Points 500 badge 2x thumb
Thanks Bill. This will work!