You need to sign in to do that
Don't have an account?
Visualforce how can assign Fields to Column 1 or 2?
Here's an example of a section I'm replicating in Visualforce. I feel like I've travelled the Seven Kingdoms trying to find an answer to this question. Visualforce will evenly distribute the fields between two columns; however, the client would like it to replicate the native page layout, and that means certain fields exist in a certain order and in specific columns. I've tried Style attributes but they only seem to effect the formatting of the field itself and not which column to associate said field.
<apex:pageBlockSection title="Special Request Tracking" columns="2" rendered="{!Case.Request_Type2__c== 'Special Requests'}">
<apex:inputField value="{!Case.Origin}"/>
<apex:inputField value="{!Case.ServicingData__c}"/>
<apex:inputField value="{!Case.Type_of_Communication__c}"/>
<apex:inputText value="{!Case.Contact}"/>
<apex:inputField value="{!Case.Requestor_Role__c}"/>
<apex:inputField value="{!Case.Exclude_from_CPI_Reporting__c}"/>
</apex:pageBlockSection>
Any help would be greatly appreciated!
<apex:pageBlockSection title="Special Request Tracking" columns="2" rendered="{!Case.Request_Type2__c== 'Special Requests'}">
<apex:inputField value="{!Case.Origin}"/>
<apex:inputField value="{!Case.ServicingData__c}"/>
<apex:inputField value="{!Case.Type_of_Communication__c}"/>
<apex:inputText value="{!Case.Contact}"/>
<apex:inputField value="{!Case.Requestor_Role__c}"/>
<apex:inputField value="{!Case.Exclude_from_CPI_Reporting__c}"/>
</apex:pageBlockSection>
Any help would be greatly appreciated!
If this resolves your problem, please mark the question as resolved.
All Answers
Your problem should solve using field sets.
https://www.salesforce.com/docs/developer/pages/Content/pages_dynamic_vf_field_sets.htm
I didn't see anything about styles or formatting when it came to Field Sets as well
If this resolves your problem, please mark the question as resolved.