function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ManvithaManvitha 

how to edit/customize fields in new task in Activity based on requirement

Hi Experts,
Have one requirement regarding the New task , Requiremnet is like this:
when i click on new task ,in standard Name fields i should get only related contacts
for example : If I am in account record page , then in Name field i should get only related accounts contacts while creating New task.
 If I am in Opportunity record page , then in Name field i should get only related Opportunity contacts/ based on the other contact related fields on Oportunity.
Can anyone help me with this.?
Thanks in Advance!!!!here i created one custom lookup ContactName, it is now giving me contacts related to the account , but if I  go to opportunity and click on Name is not showing any related contacts to that Opprtunity

 
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Manasa,

I hope you have to customize the new button logic and write custom aura component and define the search logic on that lookup field.

Thanks,