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
KRamaKRama 

Selecting using checkbox in VF page

Hi,

 

I have created a VF page that list out a set of records. I have include an inputtype checkbox in the page. I would like to select the records from the list and send email only to those.

Can this be done in VF? Is there any other way to do this?

 

hisrinuhisrinu

Yes you can process those selcted records using the following link

 

http://wiki.apexdevnet.com/index.php/Checkbox_in_DataTablehttp://wiki.apexdevnet.com/index.php/Checkbox_in_DataTable

 

After you got those records you can send mails by calling the function from the apex class.

KRamaKRama

thanks for that srini,

 

What is the difference between inputcheckboxes and selectcheckboxes?

hisrinuhisrinu

An input check box is a HTML input elemen, use this component to get user input for a controller method that does not correspond to a field on a Salesforce object. It is not related to any field.

 

But the Selected checkbox is a set of related checkbox input elements, which displayed in a table along with column.

KRamaKRama

Hi,

 

 I tried following the example in the link you provided, but while saving the VF page I am getting  error

Error: Unknown property 'Checkbox_Class1.Job_Application__c'
Quick FixCreate Apex property 'Checkbox_Class1.Job_Application__c'
Quick FixCreate Apex method 'Checkbox_Class1.getJob_Application__c'

how do i get around this? Please also point out why this error would happen.

 

thanks

KD

hisrinuhisrinu

Hi KD,

 

 I hope you have added one more field in the page editior, that is the reason it is showing the error.

 If you are using input text you have to right set and get methods.

 

 Have a look at VF guide, which will give you more information on inputtext fields.

KRamaKRama

Thanks for the help provided, I was able to get rid of that problem

 

KD