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
lewislewis 

Naming Conventions on the text field

We need to show certain naming conventions in the name of an account . ie . user need to first show the country // year // name

 

how can we do this . is there any validation rule possible to make all users follow the process in seting a name for an account ?

 

Navatar_DbSupNavatar_DbSup

Hi,


You can write validation rule like below;


if(CONTAINS( Name ,BillingCountry),if(CONTAINS( Name ,text( year(today()))),false,true),true)

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

 

 

lewislewis

there is no sf field used to create the name . it is just a requirement that users first show country // year etc .. i am looking to show a prompt to the users