+ Start a Discussion
Alex Waddell 12Alex Waddell 12 

Help: Exposing VF page on Account object

Hey everyone,

I am trying to create a simple VF page that creates a Physician's Note on save.

I am having trouble exposing this VF page on the account object since the standard controller is set to Physicians_note__c

Physicians Note is a child to the Account. Below is my code.
<apex:page StandardController="Physicians_Note__c">
    <apex:form >
        <apex:pageBlock title="Physician's Note" mode="edit">
            <apex:pageBlockButtons >
                <apex:commandButton action="{!save}" value="Save"/>
            <apex:pageBlockSection title="My Content Section" columns="2">
                <apex:inputField Label="Subjective" value="{!Physicians_Note__c.Subjective__c}" style="width:500px"/>
                <apex:inputField Label="Objective" value="{!Physicians_Note__c.Objective__c}" style="width:500px"/>
                <apex:inputField Label="Assessment" value="{!Physicians_Note__c.Assessment__c}" style="width:500px"/>
                <apex:inputField Label="Plan" value="{!Physicians_Note__c.Plan__c}" style="width:500px"/>
User-added image

I am trying to put the VF page on the account page using the Edit page option

User-added image

Can anyone help me expose this VF page on the account page while still creating the Physician's Note when pressing save.

Thank you