+ Start a Discussion
Dhanamjaya PaidipatDhanamjaya Paidipat 

Multiple objects needs to display/add values in fields

Hi All,
I have an requirement to display input   contact fileds and related one of custom object fileds in Contact custom section (VF)

Can some one help me out on this ?
Madhukar_HeptarcMadhukar_Heptarc

Dear Dhanamjaya Paidipat,
I understood your question i will send you the code for that try this code once.
Visualforce page :
<apex:page standardController="Contact" extensions="CommunityPost_cls">
   <apex:form>
 <apex:pageblock>
 <apex:pageblockButtons >
 <apex:commandButton value="Submit" action="{!save}"/>
 </apex:pageblockButtons>
    <apex:pageblockSection title="Registration Page">
 <apex:inputField value="{!Contact.Languages__c}"/>
        <apex:inputfield value="{!b.Name}"/>
     </apex:pageblockSection>/
      </apex:pageblock>
 </apex:form>
</apex:page>

Apex class :
public class CommunityPost_cls{
   public CommunityPost_cls(ApexPages.StandardController controller) {

    }
    contact c=new contact();
    Login_page__c b=new Login_page__c();
    Public contact getc(){
   return c;
   }
  Public Login_page__c getb(){
   return b;
   }
    Public pagereference Save(){
     return null; 
    }
}

NOTE:   After creating the class and visualforce page setup>Type search contact> goto page layout> try to find  the Visualforce page option from the drop down, From thier you can see the Visualforce page just drag and drop in to the Contact page section.

If it is useful make it as Anawer 

Thanks,
Madhukar_Heptarc.