torkilds Posted July 11, 2015 Share Posted July 11, 2015 I have a client that want to validate telephone numbers on a Contact form 7 field (its WordPress). I got a sandbox of the site here: http://tsw-holding5.co.uk I have scoured the internet for solutions and thought I'd found a solution but its not working. If anyone is able to help with this i would be very grateful as it is becoming quite urgent to fix this. If you can help, please let me know I'll reply quickly! and can give you access details etc. if needed. Link to comment https://forums.phpfreaks.com/topic/297256-javascript-help-on-wordpress/ Share on other sites More sharing options...
scootstah Posted July 11, 2015 Share Posted July 11, 2015 Validate how? Just client side? AJAX? Are they already validating server-side? Link to comment https://forums.phpfreaks.com/topic/297256-javascript-help-on-wordpress/#findComment-1516110 Share on other sites More sharing options...
maxxd Posted July 11, 2015 Share Posted July 11, 2015 Contact form 7 allows telephone fields with [tel ... ] - I think CF7 will validate it as a phone number on submission, but don't quote me on that. If it doesn't, you'll have to use a JS regex - quick example here. Link to comment https://forums.phpfreaks.com/topic/297256-javascript-help-on-wordpress/#findComment-1516130 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.