Si Posted September 11, 2015 Share Posted September 11, 2015 I remember seeing this a few years back on the forum, and had it implemented on my custom fields, but I've since deleted it. And now I can't find it anywhere. When I create a custom field, I was able to input a string into the 'Regular Expression Validation String' field to force customers to use alpha or numeric input only etc. I've also searched the documentation section of the site for 'Regular Expression Validation String' but it returns nothing. Seems strange that this functionality is and has been part of whmcs for years, but there is no official documentation for it. Can anyone point me in the direction of where I can find examples of validation strings? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 11, 2015 Share Posted September 11, 2015 http://docs.whmcs.com/Custom_Fields#Regular_Expression_Validation off the top of my head, I think the code you'd want would be... /^[a-zA-Z0-9]*$/ ... but test it to be sure! 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.