You need to sign in to do that
Don't have an account?
How to add VF "page" as an element within a standard layout
Here's what we need to do: We need to add some special logic to a standard layout. We want to replace a standard layout field with a VF "page" that will encapsulate the special logic. (The user shouldn't be aware that anything is different.) I understand how to create the VF page but I cannot figure out how to style the label and field to look like the standard layout. If I do the standard thing:
<apex:pageBlock ...> <apex:form ...> <apex:pageSection ...> <apex:pageSectionItem ...> <apex:outputLabel ...> <apex:inputField ...>
I get a nicely formatted label and field, but the whole thing is wrapped up in the page block styling. I just want the label and field, but it should look exactly the same as the rest of the layout. How can I do this?
Secondary question: If I do this, and there is a form embedded inside the standard layout, will the page be saved correctly?
TIA,
John
If I understand your question correctly, you are going to have an issue.
Currently, you can only have the VF page inserted on the page layout in view mode (not in edit mode).
So your question about the saving correctly would not be relevant.
All Answers
If I understand your question correctly, you are going to have an issue.
Currently, you can only have the VF page inserted on the page layout in view mode (not in edit mode).
So your question about the saving correctly would not be relevant.
I agree it is not fully thought out.
I would recommend voting for this idea on the idea exchange:
http://ideas.salesforce.com/article/show/10097442/Add_a_Visualforce_PageComponent_inline_on_Edit_page