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}

Written by 

Salesforce MVP | Lightning Champion | 17x Salesforce Certified | Application Architect | 7x Trailhead Ranger | Techforce Services | Australia

Leave a Reply

Your email address will not be published. Required fields are marked *

*