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
Angela TappAngela Tapp 

Create new household Visualforce input form but two record types

I've been searching all over for help on creating a visualforce page that collects more than one contact and more than one contact type.  
If anyone could help it would be most appreciated.

- One form that captures multiple contacts to populate the Contact Object
- Two Record Types (Contact Record Type and Student Record Type)
- Ability to click a button that says "Add Additional Family Member" in both areas 
- MailingState field is a picklist of all US States

More Details:
  • Instance is using Nonprofit Edition/Households.
  • Each time a new contact is created, it is automatically marked the 'primary contact' and SF is creating a new "Household Account" on the Account object. 
  • The form is collecting 'family' or 'household' data.  Which means at least one adult and one kiddo but it could also mean two adults and 4 kiddos.  The adults have a record type and the kiddos have a record type.
  • For the adults: the form only has 6 fields (first name, last name, email address, mailing city, mailing state and mailing zip).  But the mailing state has to be a picklist of US States.
  • For the students: the form only has 5 fields (first name, last name, current grade, today's date, and school attended)

This is all I have right now:
<apex:page standardController="Contact" Sidebar="False">
<apex:form >
    <apex:pageBlock >
        <apex:pageBlockSection >
          <apex:inputField value="{! Contact.FirstName }"/>
          <apex:inputField value="{! Contact.LastName}"/>        
          <apex:inputField value="{! Contact.Email }"/>  
          <apex:inputField value="{! Contact.MailingCity }"/>  
          <apex:inputField value="{! Contact.MailingPostalCode }"/>  
            <apex:commandButton action="{! save }" value="Save" />
            <apex:commandButton value="Cancel" action="{!cancel}" />    



Santosh Reddy MaddhuriSantosh Reddy Maddhuri

Hi Angela Tapp,

I am willing to do it without any charge , as it is a non-profit org. So far, this is my understanding

1. Need a form that can take entry of multiple contacts of household (Adults & Kids)
2. Need an option for additional entry of contacts if needed.
3. When clicked on final Save of the form. It needs to create multiple contacts entered in the form under one household(Account) instead of current  process where a household(Account) exists for every contact entered , meaning there is one household for Adult and one for kid?
4. Mailing State picklist needs to be iso 2-alpha abbreviation or full state name ?

you can reach out to me at or if comfortable you can reply here itself.



Angela TappAngela Tapp
Hi Santosh, yes to all of what you are saying.
Santosh Reddy MaddhuriSantosh Reddy Maddhuri

Hi Angela,

Below is the screenshot , This is what you are looking for?

User-added image