+ Start a Discussion
visual force.ax1886visual force.ax1886 

Create a lookup field on a standard object using a visual force page

 Hi,
I have to create an opportunity from Account. 
I have an Account lookup field on opportunity and also a custom field "Test" on opportunity which is also an lookup to Account.

I wrote a trigger to update the value to "Test" custom field value to default to Account look up field value on opportunity. Both show same account names. This is after i save.

But is there a way if i can show the Account value/name of lookup field  on "Test" field on EDIT Page.?? (as a default value) 

I do not know if its possible, let me know your comments and solutions.
THanks in Advance.

digamber.prasaddigamber.prasad

Hi,

 

You can achieve this by overriding the edit button.

visual force.ax1886visual force.ax1886

How?

 

What functionality should i add to Edit button.

 

The Opportunity is a standard object. I think we cant do that.....