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
huniversehuniverse 

Search and display Check box

Hi , i have 2 check box on apex page by default checked. Now i have requirement, when i click search button only records which have those both check box marked should be displayed and when i deselect any check box and click search button only check box marked record should be displayed. Check box are custom fields added in account. As i am new bie to VF. Kindly give some sample codes , example link for help. Thanks in Advance.
Ispita_NavatarIspita_Navatar

Basically you need to modify the select query you are firing for search on the fly, depending on the the selections made by the user?

Isn't it? If that is the case you can on the click of search button call an apex function in your controller which checks what the user has selected and based on that formulate the query for fetching the results.

 

Hope this helps.