You need to sign in to do that
Don't have an account?
Aceldama
Issues using BEGINS in a validation rule
Having issues getting a VR to work. I'm trying to force that all entries start with http:// or https:// in both lower and upper case:
OR (
NOT(BEGINS(Course_Information__c,"http")),
NOT(BEGINS(Course_Information__c,"https")),
NOT(BEGINS(Course_Information__c,"HTTP")),
NOT(BEGINS(Course_Information__c,"HTTPS"))
)
Only thing that works is using it a single time:
NOT(BEGINS(Course_Information__c,"http"))
Hello,
Try this :
By using the 'LOWER' function you don't have to check for the upper/lower case.
Good luck
All Answers
Hello,
Try this :
By using the 'LOWER' function you don't have to check for the upper/lower case.
Good luck
https://help.salesforce.com/htviewhelpdoc?id=customize_functions_i_z.htm&siteLang=en_US#LEFT
You could possibly also simplify it a bit with a REGEX
Hi
I guess usage of braces might be a problem.
Try this once
OR (
NOT(BEGINS(Course_Information__c,"http"),
NOT(BEGINS(Course_Information__c,"https"),
NOT(BEGINS(Course_Information__c,"HTTP"),
NOT(BEGINS(Course_Information__c,"HTTPS")
)
I have just removed the double braces after each line
Thanks M! That one worked.
Tried that first, but got an error that I was missing a bracket. Would still like to know what was wrong with my original formula. When I activated it, it would accept none of my pre-conditions. Odd