You need to sign in to do that
Don't have an account?
Arun Kumar 271
Disable a button in standard Account object based on a custom picklist field value
Hi,
Salesforce standard 'account' object has lookup relationship with standard 'contacts' object. i see a button 'new contacts' for adding contacts to the account record. I have a custom picklist field in standard object named 'status', (values: 'active', 'inactive' and 'to be remediated'),i want to ensure no contacts can be added to the account if the account 'status' picklist value is 'inactive'.
How do i do that? i am new to salesforce and appreciate your time in helping me, Thanks in advance.
Salesforce standard 'account' object has lookup relationship with standard 'contacts' object. i see a button 'new contacts' for adding contacts to the account record. I have a custom picklist field in standard object named 'status', (values: 'active', 'inactive' and 'to be remediated'),i want to ensure no contacts can be added to the account if the account 'status' picklist value is 'inactive'.
How do i do that? i am new to salesforce and appreciate your time in helping me, Thanks in advance.
Please use below trigger.It will work as per your requirement.
Thanks,
Swaraj Behera