You need to sign in to do that
Don't have an account?
Pre-Populate a Visualforce Form Field
Hey,
I have a inputField that is a lookup, it is:
<apex:inputField value="{!op.Account}" /> op is opporunity.
I want to prepopulate that with the ID of the account, it has already been chosen at this point, but i know traditionally value="" is what you use to populate an input field, although it must be an object, in this case its account. How can I push the account value into that input field?
Just realized you need to just do this in the controller for where you are calling the fields of the input.
All Answers
Just realized you need to just do this in the controller for where you are calling the fields of the input.
Hi
Can we please describe how you achieved it ?