OR function does not return an error when one of its component expressions results in an error in Lightning
Last updated 17 days ago ·Reference W-8935811 ·Reported By 1 users
In Review
Summary
OR function does not return an error when one of its component expressions results in an error.
Repro
-Create a new formula field (checkbox) on accounts with the formula: OR(ISPICKVAL( Industry , "Finance"), VALUE(TEXT(Industry )) > 5)
-Create an account record.
-Change the Industry picklist value to “Finance”
-Notice the formula field in lightning.
-Switch to Classic and notice it behaves differently.
Workaround
Validate if it is a number before comparing a picklist value with a number:
OR(boolean1, IF( ISNUMBER(TEXT(Industry )), VALUE(TEXT(Industry )) > 5, false))
Reported By (1)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.
