I need to create a validation rule when the Custom checkbox field called "Unaffiliated" is checked off, then the following fields can NOT be populated and record can NOT be saved:
- Parent Account Name(Node 4 nonexisting)
- Street Address (Node 4 nonexisting)_img src="https://lorealusa--scdev.cs9.my.salesforce.com/s.gif" /_
- Parent Account Num(Node 4 nonexisting)
- City (Node 4 nonexisting)
- County (Node 4 nonexisting)
- State (Node 4 nonexisting)_img src="https://lorealusa--scdev.cs9.my.salesforce.com/s.gif" /_
- Zip (Node 4 nonexisting)_img src="https://lorealusa--scdev.cs9.my.salesforce.com/s.gif" /_
- Phone (Node 4 nonexisting)
- Parent Account Name(Node 4)
- Street Address (Node 4)_img src="https://lorealusa--scdev.cs9.my.salesforce.com/s.gif" /_
- Parent Account Num(Node 4)
- City (Node 4)
- State (Node 4)_img src="https://lorealusa--scdev.cs9.my.salesforce.com/s.gif" /_
- Zip (Node 4)_img src="https://lorealusa--scdev.cs9.my.salesforce.com/s.gif" /_
- Phone (Node 4)
Thanks!!
1 respuesta

You can write a validation rule like If "Unaffiliated" = True && and following fields are blank
- Parent Account Name(Node 4 nonexisting)
- Street Address (Node 4 nonexisting)_img src="https://lorealusa--scdev.cs9.my.salesforce.com/s.gif" /_
- Parent Account Num(Node 4 nonexisting)
- City (Node 4 nonexisting)
- County (Node 4 nonexisting)
- State (Node 4 nonexisting)_img src="https://lorealusa--scdev.cs9.my.salesforce.com/s.gif" /_
- Zip (Node 4 nonexisting)_img src="https://lorealusa--scdev.cs9.my.salesforce.com/s.gif" /_
- Phone (Node 4 nonexisting)
- Parent Account Name(Node 4)
- Street Address (Node 4)_img src="https://lorealusa--scdev.cs9.my.salesforce.com/s.gif" /_
- Parent Account Num(Node 4)
- City (Node 4)
- State (Node 4)_img src="https://lorealusa--scdev.cs9.my.salesforce.com/s.gif" /_
- Zip (Node 4)_img src="https://lorealusa--scdev.cs9.my.salesforce.com/s.gif" /_
- Phone (Node 4
Then display message "You can not save this record".
But you can not hide these fields using validation rule.
You can achieve this using workflow. You have create a record type and page layout (This page layout do not contain aboce listed fields).This page layout assigne to this record type. Now write a workflow and update the field record type.
But both together not possible. You can not use same checkbox for validation rule and workflow.
Thanks