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

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
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
Can you please elaborate your requirment, how Customer and address object are related ?
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