Home SALESFORCEAPEX How to check the check box by default in visual force page
Apex Class:

public class checkcontact {
public list con {get;set;}
public boolean cc{get;set;}
public checkcontact() {
con=new list();
cc=true;
con=[select name,email from contact];
}
public void change() {
if(cc==false)
cc=true;
else
cc=true;
}
}
VisualForce Page:
 
Name
Email
{!conlist.Email}

You may also like

Leave a Comment

*