function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MaggieSumitMaggieSumit 

Please enter www before entering URL

I am using this validation formula but it's not working

OR(LEN(URL__c) = 1,NOT(CONTAINS("www.",URL__c)))
Prithviraj_ChavanPrithviraj_Chavan
Hi Sumit,
for what u need this formula please explain so I can create 1 for you
MaggieSumitMaggieSumit
I need a validation which check www. and .com.
And Not allow to www.com 
Prithviraj_ChavanPrithviraj_Chavan
OR(
RIGHT( URL__C, 12) <> ".company.com",
LEFT( URL__C, 4) <> "www.")

 
brahmaji tammanabrahmaji tammana
You can try this.

OR ( RIGHT( Website__c , 4) <> '.com', LEFT(Website__c , 3) <> 'www' , Website__c ='www.com' )

Take care of case sensitive things.

Thanks
Brahma