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
Arnold BrownArnold Brown 

How to Split Account fields across multiple Visualforce Tabs?

Our Account Page layout is getting out of hand.  Too many sections.  We've implemented a Child object containing 75 fields, but the all the object's data has a 1:1 relationship to account.  The child exists solely to put the fields on another layout.  It's causing a lot of work as we want the data to flow to contacts.  Rather than write Triggers & Process Builders to push the data around, I'd like to move all the fields up to the Account object and create a tabbed view of Accounts via Visualforce.  The problem is all examples I'm finding use a seperate tab for the related lists.   In addition to doing that, I want to add a tab "Client Account Detail" and put the 75 pertinent fields only on that VF tab and not show them on the Master Account Layout.  

Soooo.....possibile?  I've not seen an example of this in practice and I've been digging a bit.  I'm new to VF development. Any examples you could point to would be most helpful. 

Thanks!!

Arnold

 
SalesFORCE_enFORCErSalesFORCE_enFORCEr
You can try something like this
<apex:page id="thePage" standardController="Account" showHeader="true" sidebar="true">
<apex:form>
    <apex:tabPanel switchType="client" selectedTab="name2" id="theTabPanel">
    <apex:tab label="Account Details" name="name1" id="tabOne">
        <apex:pageBlock>
            <apex:pageBlockSection>
                <apex:inputField value="{!Account.Name}"/>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:tab>
    <apex:tab label="Address Details" name="name2" id="tabTwo">
        <apex:pageBlock>
            <apex:pageBlockSection>
                <apex:inputField value="{!Account.BillingCountry}"/>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:tab>
    </apex:tabPanel>
</apex:form>
</apex:page>
ArnoldFBArnoldFB
Thanks!  will do