You need to sign in to do that
Don't have an account?

How to disable/ enable the Lookup Field Dynamically
Hi
In my organization I have a scenario that, in Opportunity when the TYPE field = "Existing" then the Account(Lookup) Field should be enabled, otherwise it should be in disable state.
Can any one please help on this....
Thanks!!!
Hi,
First of all i want to know that u r using visual force page or standard page,if u r using VF page then for that inputfield there will be one variable 'disable'->boolean type for this u should assign a variable, so for that variable u should use controller that when it should disable and when it should be enable (setting to true or false).
Regards,
Praveen Sappati
Hi praveen
Thanks For your reply. It is in standard Page, I am not using any visualForce Page.
Thanks!!!
Hi,
lookup field should be enable or disable in the new page and edit page or in view page..
Regards,
Praveen Sappati
Hi Praveen
It should be in New page and Edit Page of opportunity
Thanks!!!
Hi,
Then you have to use Visualforce page. there is no other solution
Regards,
Praveen Sappati
Hi Praveen
If it is in view page how will we do?
Thanks!!!
Hi,
If it is in view page based upon workflow field update we can assign different pagelayout by removing lookup field.It is some what difficult that we have to create record type
Regards,
Praveen Sappati.
Hi Praveen
Thanks for your Reply.