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
igor Camargoigor Camargo 

Custom Field CNPJ

Good afternon, I am Igor, I need to create a good field to enter the CNPJ my leads, I've been giving a good searched and not found anything that could solve my problem I ask to help me, let her in my field CNPJ need when registering a new lead, when it becomes null so 00.000.000/0000-00, and when you get some value so 34.456.212/2341-98, I ask you to help me, thank you.
Best Answer chosen by igor Camargo
SonamSonam (Salesforce Developers) 
You can create a custom field and put a validation rule such that only CNPJ values can be entered in the field and its default value can be set as 00.000.000/0000-00

validation in the thread below:
https://success.salesforce.com/answers?id=90630000000gzc8AAA

All Answers

SonamSonam (Salesforce Developers) 
You can create a custom field and put a validation rule such that only CNPJ values can be entered in the field and its default value can be set as 00.000.000/0000-00

validation in the thread below:
https://success.salesforce.com/answers?id=90630000000gzc8AAA
This was selected as the best answer
igor Camargoigor Camargo

more how I do it in a custom field? I saw this link not helped me, it validates this link cpf 000.000.000-00 I need to validate CNPJ 00.000.000/0000-00 thanks
igor Camargoigor Camargo

Thanks, I got