function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
miha198206miha198206 

Different field types in search criteria

Hello,

 

I want to make custom search visualforce page. And give to users ability to select field name (like Account Owner, Expiration Date, etc.) then select operator (like equals, not equals, etc.) then select value (for Account Owner it should show lookup, for Expiration Date it should show date selection calendar).

 

What is the easiest way to achieve this?

 

Thanks.

Edwin VijayEdwin Vijay

Hi,

 

You can use Sobject Describe calls to get the field names, use select lists to display the user options. And have your apex class do the search.

 

Here is an article to get you started Customized search . Not exactly what you need, but may help you get started

 

Thanks,

Edwin