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
himanshu huske 7himanshu huske 7 

trigger_task

I Have customer obj with field IsPrimary(checkbox) and addrText(textarea)
I also have an obj Addresses with field Addr_type(picklist with valuse 'Primery' and 'Secondery') and Addr_Line_1
if IspPrimary is checked, addrText should get populated with Addresses record Addr_Line_1 having  having picklist value as primary 
else adresses record with secondery value of addressLine_1
mahesh padigela 1mahesh padigela 1
Hi Himanshu,

Can you please elaborate your requirment, how Customer and address object are related ?
 
himanshu huske 7himanshu huske 7
customer object is master to Address__c,
customer has IsPrimery__c(checkbox), MyAddrDetail__c(textArea)
Address__c has  Addr_Type__c(picklist values: primary, secondery),Address_Line_1__c(textArea)
if IsPrimery__c is checked, MyAddrDetail__c should get populated with Address__c record Address_Line_1__c having  having picklist value as primary 
elseif IsPrimery__c is Unchecked, MyAddrDetail__c should get populated with Address__c record Address_Line_1__c having  having picklist value as secondery