+ Start a Discussion

Filter visualforce page

I have a HTML table in a visualforce page with a custom controller that is fetch with data from the Lead object. I would like to filter the data using two filters The second filter values are dependent of the value previously selected in the first filter. How can I do that? Any sample code would be very much appreciated. Thank you!

Val ValinoVal Valino

Here is a sample code for creating a filter for a set of data. What you can do is create two filter fields to filter out the data. You can even use the same action function for the two filters.