I have a custom object where and am trying to create a validtion rule that, if both of the two fields are true:
- Website Setup Category = New Website
- Onboarding Stage = Launched
then the following fields need to have some value (not be blank), else an error:
- Design Setup (picklist)
- Theme (picklist)
- Launch Date (date)
Here are two versions of code I've tried, both of which aren't working.
Option 1
AND(
ISPICKVAL( Onboarding_Stage__c , 'Launched'),
ISPICKVAL( Website_Setup_Category__c , 'New Website'),
OR(
ISBLANK (TEXT ( Design_Setup__c),
ISBLANK (TEXT (Theme__c),
Launch_Date__c = null,
))
Option 2
AND(
ISPICKVAL( Onboarding_Stage__c , 'Launched'),
ISPICKVAL( Website_Setup_Category__c , 'New Website'),
OR(
ISPICKVAL( Design_Setup__c, ''),
ISPICKVAL( Theme__c), ''),
Launch_Date__c = null,
))
The error message I'm getting is: Error: Syntax error. Found ')
All of the fields are on the same custom object.
Thanks in advance for your assistance!
Lets try this =
AND(
TEXT(Onboarding_Stage__c) = "Launched",
Website_Setup_Category__c = "New Website",
OR(
ISBLANK(TEXT(Design_Setup__c)),
ISBLANK(TEXT(Theme__c)),
ISBLANK(Launch_Date__c)
)
)