10 November 2011

Modx, eForm and form validation

For those of you using the excellent CMS Modx, here's a snippet of information you may find useful. A website I created, with Modx, also has a contact form, utilising the eForm snippet and parser. I enabled Captcha in the settings and added the necessary calls to invoke the Captcha on the contact form. However, whilst the Captcha did appear to be working, and checking for validation on submit, the Captcha image wasn't being rendered. I figure the server the website is hosted on doesn't have the necessary libraries installed to do so, so another method was called for.

I stumbled across an article which describes how to use a built-in eForm technique, and a tiny bit of CSS (one line actually), and I'm happy to report that it works! Visit the link below to learn more:


No comments:

Post a Comment