
How can I make a checkbox appear in Lead - Activities, but not in Account-Activities and vice versa?
1 réponse
Hi Sebastien,
I dont see a straightforward way to achieve this. Conditionally showing and hiding of fields is not possible currently. There is an idea on IdeaExchange which you can upvote - https://success.salesforce.com/ideaview?id=08730000000BroxAAC (60,000+pts currently). Now there are really two ways to achieve this in current scenario-
1. Configuration- Create two recordtypes on Activities (tasks/events), naming them as 'Business Activity' (Account) and 'Prospect Activity' (Lead).
- Create two page layouts corresponding to these two activity record types one with the checbox on it (Lead) and one without the checkbox and assign these layouts to appropriate record types.
- Create a validation rule that will ensure that for 'Business Activity' only Account is Picked in 'Related To' field and othe other hand only 'Lead' is picked in 'Name' field for 'Prospect Activity' record type.
- Pro - Quick Setup. Con - Scalability, if more rulesa re introduced corresponding to different approach.
2.
Customization- You will have to over ride new/edit/detail page with a custom VF page.
- Rest - you can reach out to developer community for detailed approach.
- Pro - Scalable as its code. Con - Developer required/ Time to implementation is more.