Business rules are intended to address simple common requirements. Compared to what a developer can do using JavaScript in a form, business rules have limitations.
Here are a few limitations when using business rules:
- Business rules run only when the form loads and when the value of the field referenced in the rule is changed. Rules do not run again when a record is saved unless the scope for the rule is set at an entity level.
- If a business rule references a field that is not present on a form, the rule will not be applied. There will be no error message to inform you that the rule hasn't been applied.
- When the scope is set to Entity, the rule will run twice – once on the form and once on the platform.
- Business rules work only with fields. If you need to manipulate other form elements, such as tabs or sections, you must use JavaScript.
- You can't have more than 10 if-else conditions in a rule.
- Nested if-else statements...