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
PetyaPetya 

Visual force page as a page layout section

Hello 

I try to implement a visual force page as a section part from custom object. The section should simple include questions and answers (picklist). I defined the following code, but I see the chatter window under the section and below on the salesforce page :) I dont know way.

The picklist should be edited only in edit mode, and now this is not possible with my code.

Any ideas? 

 

So the chatter is not anymore on the visualforce page :) but I still cannot edit the picklists only in edit mode.

 

<apex:page standardController="Custom_Object_c">
 <apex:form >
 <apex:pageBlock >
 <apex:pageBlockSection title="Checklist" columns="1" showHeader="false">
 
   Is this your question?
        <apex:inputField value="{!Custom_Object_c.Answer_Question__c}"/>
    </apex:pageBlockSection>  
  </apex:pageBlock>
 </apex:form> 
</apex:page>
SFAdmin5SFAdmin5

you can't use an embedded vf page in edit mode.  it only works for detail mode.  you can have input vf fields on an embedded vf page on a standard page layout but those fields will only be editable on detail page.

 

the only way to my knowledge, to use a vf page in edit mode is to completely override the edit page for the object, and not just embed a vf page in a section of a standard edit page

PetyaPetya

thanks