TR Book a demo Start free
Home › Blog › Recipes

How to set up validation rules in a CRM: six ready recipes

O Ohana360 Team • October 1, 2026 • 11 min read
Cover image showing an Ohana360 validation rule card that checks the amount on a won opportunity

A validation rule in a CRM is a condition that stops a faulty record from being saved. In Ohana360 you open Setup > Object Manager, pick the object, press New Rule on the Validation Rules tab and enter a name, an error message and up to 10 conditions. When they are met, the save is blocked and your message is shown.

The rule runs on forms, lists, import and the API. Ohana360 is a business cloud that keeps sales, service and marketing records in one database; validation rules are set up from the same screen for every object in that database. This post is a recipe collection: first the logic of a rule, then six rules you can copy into your own org, and at the end the paths where a rule does not run.

What is a validation rule and when do you need one?

A validation rule is a set of conditions that describes when a record must not be saved, and shows the user a message in that case. Instead of cleaning up data that already broke a report, it stops the data at entry.

Three signs tell you a rule is needed:

The last point is an important distinction. If a field must be filled on every record you do not need a validation rule: open a record, choose Edit Page from the gear and tick the field as Required. A validation rule is for requirements that depend on a condition. If the field itself does not exist yet, add it first with the steps in the custom fields guide.

How do I set up a validation rule in Ohana360?

A validation rule is created in Setup > Object Manager by picking the object and pressing New Rule on the Validation Rules tab, and it is active as soon as it is saved. You can add as many rules to an object as you need; the number next to the tab name is the rule count for that object.

The Ohana360 New Validation Rule window with an opportunity rule that has three conditions and custom logic
  1. Pick the object. Open Opportunity, Lead, Case or another object from the list on the left of Object Manager and go to the Validation Rules tab.
  2. Press New Rule. The New Validation Rule window opens.
  3. Type a rule name and an error message. Both are required. The user sees them together: the rule name, a colon, then the message.
  4. Add the conditions. Each condition is a field, an operator and a value. The Add condition link takes you up to 10 conditions.
  5. Choose the condition logic. All must match (AND), Any may match (OR) or Custom logic.
  6. Read the summary and save. The line "The record is blocked when" at the bottom of the window writes the rule as a plain sentence. If the sentence describes the state you want to block, press Save.

Each row in the rule list starts with an Active box. Unticking it gives the rule an Inactive badge and switches it off without deleting it; this is how you pause a rule briefly during a bulk data fix. Every new org ships with one sample rule on the Opportunity object: it blocks an opportunity whose stage is Closed Won and whose amount is zero or less.

Which operators can a condition use?

Condition operators depend on the field type: a text field has 7 operators, a picklist 4, a number field 8 and a date field 5. The value is always a fixed value that you type.

Field typeOperatorsNote
Textcontains, does not contain, equals, not equal, starts with, is filled, is emptycontains, does not contain and starts with ignore letter case; equals compares exactly
Picklistequals, not equal, is filled, is emptyThe value is chosen from the options of the field
Numberequals, not equal, greater than, greater or equal, less than, less or equal, is filled, is emptyAn empty number field counts as 0 in a comparison
Dateafter this date, before this date, on this date, is filled, is emptyAfter and before include the day you type

The is filled and is empty operators take no value. Condition logic has three options. All must match (AND) is the default and blocks when every condition is true at once. Any may match (OR) blocks when a single condition is true. With Custom logic you combine the condition numbers with AND, OR, NOT and parentheses, for example 1 AND (2 OR 3). The window checks the expression: with an unused condition number or a broken parenthesis the Save button does nothing.

A rule describes the bad state: 1 AND (2 OR 3) Each condition is tested, the logic expression combines the results; when it is true the record is blocked. CONDITIONS 1 Stage equals Closed Won 2 Amount equals 0 3 Close Date is empty CUSTOM LOGIC 1 AND (2 OR 3) SAMPLE RECORD 1 2 3 RESULT Closed Won, amount 0 Close date 30 Sep 2026 yesyesno Blocked Closed Won, amount 250,000 Close date 30 Sep 2026 yesnono Saved Negotiation, amount 0 Close date empty noyesyes Saved On the third record 2 and 3 are met but 1 is not: the deal is not won yet, so the rule lets it through. The notice the user sees: the rule name, a colon and the error message you wrote. The common mistake is writing the correct state as the condition. A condition is always the state you want to block.

Which validation rules are worth having: six ready recipes

The validation rules that pay off most are the ones that catch missing information at the moment a stage or status changes. The six recipes below use field and operator names as they exist in Ohana360; each takes about two minutes to build.

1. A won opportunity needs an amount and a close date

If you renamed your stages as described in the sales pipeline stages guide, pick your own stage name in the first condition.

2. A qualified lead must have contact details

3. An email address must contain an @ sign

Without the first condition the rule would also block every contact with an empty email, because an empty value does not contain @ either. This rule is not a format check, it only catches the most common typing slip.

4. A case cannot be closed without a description

5. Probability stays between 0 and 100

6. An account cannot have both industry and phone empty

Pick up one habit while building these: read the "The record is blocked when" summary out loud before saving. If the sentence describes how things should be, the condition is written the wrong way round. If you would rather ask a manager than block the record on large deals, the tool you want is not a rule but an approval workflow.

On which paths does a validation rule run?

A validation rule runs on every create and edit made on screen, on import and on the API; it does not run on records that arrive from web forms or on values written by automation flows. A rule applies in the same way to every user, admins included.

On which path does a validation rule kick in? A rule is defined per object in Object Manager; every on screen create and edit, and the API, read it. HOW THE RECORD ARRIVES RULE WHAT HAPPENS Record form (New / Edit) Standard objects, app objects, custom objects Runs A red notice appears, the form stays open Inline edit and kanban Changing a cell in a list, dragging a card Runs The change is not saved Bulk update Selecting several records and changing a field Runs One violation stops the whole bulk action CSV / Excel import Every row is checked in the review step Runs The row is flagged with the rule name, skipped API (REST endpoints) A record written from outside with a Bearer key Runs Returns a 422 error; all conditions must hit Web forms Records from Web-to-Lead and Web-to-Case Skipped The record opens without meeting the rule Flows and lead conversion Records an automation writes or creates Skipped The written value is not checked A rule applies to everyone, admins included. It does not scan existing records; an old record meets the rule when someone edits it.

Three practical consequences follow from this table:

Since leads from web forms do not meet the rule, reviewing form records once a week is a good habit; in the same review you can merge repeats as described in the duplicate records guide.

How do you write a good error message?

A good error message tells the user what to do, not just what went wrong. In Ohana360 the message appears in red in the notification area of the screen, together with the rule name, and the form stays open.

Not included: what validation rules do not do

How do you manage validation rules without wearing the team out?

Validation rules do not wear a team out when they are few and tied to a transition in the work process. Putting a rule on every field leads users to abandon the record half way or to fill the field with a meaningless value.

A routine that works: start with two or three rules per object and tie each one to a stage or status change. Before switching a rule on, build a list view with the same conditions and see how many existing records would be caught; if the number is high, fix those records first. In the week you add a rule, tell the team in one sentence what the error message means. All sales records live in Sales360, and the profiles in the user permissions guide decide who may open Object Manager.

Read next