Like us!

Joomla!™ Disclaimer

Joomla!™ is a registered trademark of Open Source Matters.
Tekdi Web Solutions, tekdi.net and techjoomla.com are not affiliated to Joomla!, Open Source Matters or any of its subsidiaries.

Home Displaying items by tag: javascript

http://tekdi.net/media/k2/items/cache/e4c07973dbc8eb2f7380bdedc4201087_S.jpgRecently looking at some extensions, i realized that a whole lot of Joomla extensions use a lot of custom js to add validations to their forms. While this might be needed in some cases, 90% of the times you should be able to use the inbuilt Joomla validation available via the mootools validate.js . Working using in built Joomla functions will help keep you code free from excessive external js & reduce the bloat. A lot of times it will also help reduce JS conflicts.

Ironically i was prompted to write this blog post when we discovered one of our old extensions having this very issue ! While making the corrections i thought a small blog about using native Joomla validation might be helpful to a lot of devs.

So here is how you go about adding Joomla form validation...

Published in Joomla