Sunday, June 19, 2011

Diffrence between isNull and isBlank

Text fields are never null, so using this function with a text field always returns false. For example, the formula fieldIF(ISNULL(new__c) 1, 0) is always zero regardless of the value in the New field. For text fields, use the ISBLANKfunction instead.
Multi-select picklist fields are never null in s-controls, buttons, and email templates, so using this function with a multi-select picklist field in those contexts always returns false.
Empty date and date/time fields always return true when referenced in ISNULL functions.
Choose Treat blank fields as blanks for your formula when referencing a number, percent, or currency field in an ISNULL function. Choosing Treat blank fields as zeroes gives blank fields the value of zero so none of them will be null.

Merge fields can be handled as blanks, which can affect the results of components like s-controls because they can call this function.
When using a validation rule to ensure that a number field contains a specific value, use the ISNULL function to include fields that do not contain any value. For example, to validate that a custom field contains a value of '1,' use the following validation rule to display an error if the field is blank or any other number:
OR(ISNULL(field__c), field__c<>1)

No comments:

Post a Comment