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
Wasim AkramWasim Akram 

Please help me its arjent

Make one field on contact "Contacted" checkbox.

Make one button on account object "Show All"

On click of that button it will open one vf page that will show all contacts which are Contacted = false, as table. All labels must be left side and all fields data must be right side.
On last column there will be a button "Matched"
Click on that button will make "Contacted" field to true. As soon it happens that record must remove from the list.
Asha KAsha K
Hey here is thecode for you

<apex:page controller="ContactsCheckbox">
<apex:form >

<apex:outputPanel id="op1">
    <apex:commandButton title="ShowAll" value="ShowAll" action="{!ShowALL}" reRender="pbtable1"/>
</apex:outputPanel>

<apex:pageBlock id="pb1" >
    <apex:PageBlockTable value="{!lstContact}" var="con" id="pbtable1">
        <apex:column value="{!Con.Name}"/>
        <apex:column value="{!Con.Contacted__c }"/>
        <apex:column >
            <apex:commandButton value="Matched" action="{!getCheckboxTrue}" reRender="pbtable1">
              <apex:param assignTo="{!Convariable}" name="con" value="{!Con.id}"/>
            </apex:commandButton>
        </apex:column>
     </apex:PageBlockTable>
 </apex:pageBlock>
 </apex:form>
</apex:page>


public with sharing class ContactsCheckbox {

public List <Contact> lstContact{get;set;}
public Contact oCon = new Contact();
Public string Convariable{get;set;}
Public map<Id, Contact >mapCon = new map<Id,Contact>();

    public Void ShowALL() {
    
     lstContact = [Select Id, Name, Contacted__c from Contact where Contacted__c = False];
    
    for (Contact oContact:   lstContact){
    
    mapCon.put(oContact.Id, oContact);
    }
    }
    
    public void getCheckboxTrue() {
    
    oCon = mapCon.get(Convariable);
    
    if(oCon != NULL)
    {
      oCon.Contacted__c = true;
      update oCon ;
    
    }
       ShowALL();
    }

}