You need to sign in to do that
Don't have an account?
RP2
Visualforce variables and prepopulating fileds
How can a varible be prepopulate on a visual force form?
<apex:pageBlockSectionItem > <apex:outputLabel value="First Name"></apex:outputLabel> <apex:inputText value="{!firstname}"/> </apex:pageBlockSectionItem> <apex:pageBlockSectionItem >
How can the variable {!firstname} in the above example be prepopulated?
Something like..
<apex:param name="firstname" value="{!Opportunity.Account.Contact.Fristname" />
In the Getter method you can return the String You like to be prepopulated.
You may also set the Value in constructor to return the default as Your String.