How to Create Boolean Formula Field in Zoho CRM

The following table helps you to understand the type of arguments required for boolean functions along with the type of syntax that needs to be formed.

Function
Description
Usage
Examples 
IfReturns one of two values, depending on the value of a given logical condition. If the boolean test is true, If() returns the true value, otherwise returns the false value. If(Boolean,Generic, Generic)* If(8>7,1,0) returns "1.0"
If(8>7,'True','False') returns "True"
AndReturns a true response if all expressions are true; returns a false value even if one of the expressions is false. And(boolean,boolean ...) And(2>1,5>3,7<8) returns "true"
And(2>1,5>3,7>8) returns "false"
OrReturns true if any one expression is true. Returns false if all expressions are false. Or(boolean,...) Or(2>1,3>5,7>8) returns "true"
Or(1>2,3>5,7>8) returns "false"
NotReturns the logical negation of the given expression(If the expression is true, returns false). Not(boolean) Not(false) returns "true"
Not(true) returns "false"

* Generic implies any data type – Number, String, Datetime (including normal date) or Boolean. The return type depends on the selected data type. For instance, if the generic data type is a number, the return type should be Numeric and not string or boolean.

*Values of the String data type can be used with == and != operations inside If(), Or(), And(), and Not() library functions. For example, If (‘abc’ == ‘abc’, ${returnValue1}, ${returnvalue2})*

To create boolean type formula fields

  1. Log in to Zoho CRM with Administrator privileges.
  2. Go to Setup > Customization > Modules and Fields. Module refers to the Leads, Accounts, Contacts, etc. tabs.
  3. Click the required module. The Layout Editor opens.
  4. Drag and drop the Formula field from the New Fields tray to the required module section on the right.
  5. In the Formula Properties window, do the following:
    • Enter id in the Label field.
    • Select Boolean Functions as the Formula Return Type from the drop-down list.
  6. Constructing Formula
  7. Under Select Functions, select Boolean Functions from the drop-down list.
  8. From the list of Boolean Functions, choose a function and click Insert. (Alternatively, you can double-click on a function to insert)
  9. In the Formula expression, click between the parenthesis to insert an argument.
  10. Under Select Field column, choose a field and click Insert. (Alternatively, you can double-click on a field to insert)
  11. Under Select Operator column, choose an operator and click Insert.
  12. Click Check Syntax to check the construction of the formula.
  13. Click Save.