You need to sign in to do that
Don't have an account?
arti7
Is there anyway to pre-populate opportunity name value
Hello,
I would like to pre-populate opportunity name value after I clicked "New" button in the Opportunity Tab.
I know how to replace opportunity name after I clicked "Save" button in the entry page of Opportunity.
I just would like to know how to pre-set it before saving data.
Thank you in advance.
you can acheive this by extending the controller. Make sure your VF page has the following apex::page tag
<apex:page standardController="ObjectA" extensions="ObjectAExtension">
</apex:page>
The controller class should be as below
In the VF page refer to the fields of ObjectA using apex:inputField tag to respect the datatype by default.
Ref:http://boards.developerforce.com/t5/General-Development/Populate-fields-in-VF-page-that-is-linked-from-a-custom-object/m-p/218037#M48266
You can't set a value in opportunity name after clicking on new button in opportunity object. For this create a standard controller with a extension to get record in constructor and select the field in which you want to set / update the values.
Hope this helps.