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

Hi, I have two customfields, checkbox and Lookup fields, my requirement is if i check that checkbox then only lookup field is displayed otherwise not displayed,can we write any validationrule on this or any coding??
Hi, I have two customfields, checkbox and Lookup fields, my requirement is if i check that checkbox then only lookup field is displayed otherwise not displayed,can we write any validationrule on this or any coding??
Hi Kasa,
I am writing code below to your Question.
Please create one object and in that object you need to create one checkbox field and one lookup field.Now you can put above code in your class and page .click preview button on page you will see your solution.If it will work.Please mark it as a best answer.
If you will face any problem let me know.
Thanks,
Dileep
All Answers
Hi Kasa,
I am writing code below to your Question.
Please create one object and in that object you need to create one checkbox field and one lookup field.Now you can put above code in your class and page .click preview button on page you will see your solution.If it will work.Please mark it as a best answer.
If you will face any problem let me know.
Thanks,
Dileep
hi venkat,
we can't achieve this functionality as it is not available in salesforce till now....
we can update the lookup field but we can't disable the lookup.
By using validation we can check whether the lookup field can be empty or not by cjecking the true /false conditon of checkbox.
if you want this functionality vote for the following idea..https://success.salesforce.com/ideaView?id=08730000000hS2tAAE
please let us know if this helps you..
thanks
vishnu R
@vishnu thanks for valuble feedback