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
kris chitkris chit 

Validation rule Formula to allow only linkedin urls

Hi,

There is a linkedin url field on Contact. I want to write a validation rule to allow only url's that starts with "https://www.linkedin.com". So when a user enters any junk like data like "facebook.com", it should throw a validation rule.

Please guide me.
Amit Singh 1Amit Singh 1
Hello Kris,

Use below formula for validation rule.
IF( BEGINS( Linkedln_URL__c , 'https://www.linkedin.com/') , false, true)
Note : - Replace Linkedln_URL__c  field with your actual field API name.

Let me know the outcomes.
Thanks,
Amit Singh