Skip to content

Instantly share code, notes, and snippets.

@longjasonm
Last active December 11, 2015 00:28
Show Gist options
  • Save longjasonm/4516601 to your computer and use it in GitHub Desktop.
Save longjasonm/4516601 to your computer and use it in GitHub Desktop.
A Force.com Validation Trigger to verify that all of the BANT fields are filled in before a lead can be saved as a TQL.
ISPICKVAL(Lead_Contact_Status__c, "TQL")
&&
OR (
ISPICKVAL( Budget__c,"" ),
ISPICKVAL( Need__c,"" ),
ISPICKVAL( Authority__c,"" ),
ISPICKVAL( Timing__c,"" )
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment