Mark, My advice is to download the jquery validation plugin yourself and take a look at the additional-methods.js file and you'll see options for phoneUS, phoneUK, and mobileUK. Using that sample code (pretty simple) just create a new method for phoneAU. We use it for our frontend forms as well (but don't use formtools on frontend forms).
http://jqueryvalidation.org Also, we like to use it in conjunction with the jQuery "Masked Input" plugin. We've been using it for over 4 years now and it works great. It's extremely flexible and very easy to use (Note: doesn't work on the frontend of the site when you're logged into FarCry due to a js conflict. Doesn't affect normal end users though so we never bothered to make a workaround). http://digitalbush.com/projects/masked-input-plugin Jeff On Mar 25, 2014, at 2:25 AM, Mark Picker <[email protected]> wrote: > Hi, > > I'm working on a frontend form that uses FormTools. Is there anything built > into FC6 to validate Australian phone numbers or do I need to write something > myself? > > I need to allow for max 10 digits plus ( and ) and spaces (although ideally > when it saves, I probably want to strip it back to just digits). > > Cheers > Mark -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry --- You received this message because you are subscribed to the Google Groups "farcry-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
