zooming Posted September 19, 2008 Share Posted September 19, 2008 Hello, Is there a way to validate a sign up custom field? In Brazil we have the CPF and CNPJ numbers, that are related to a person and a company, and that are required for almost every transaction between a company and it's customers. These numbers are generated, so I can run a validation script and check if they formats are valid. The problem is that I don't know where to insert this validation function (JavaScript and/or PHP) in WHMCS. Thank you. Alexandre 0 Quote Link to comment Share on other sites More sharing options...
zooming Posted September 22, 2008 Author Share Posted September 22, 2008 Hello, I just got a answer from Matt, you can do that in the smarty template. Alexandre. 0 Quote Link to comment Share on other sites More sharing options...
jerryasbr Posted May 15, 2013 Share Posted May 15, 2013 Hi! Put it in the field Validation CPF: /^[0-9]{3}\.[0-9]{3}\.[0-9]{3}\-[0-9]{2}$/ CNPJ: /^[0-9]{2}\.[0-9]{3}\.[0-9]{3}\/[0-9]{4}\-[0-9]{2}$/ Bye! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.