Alan Hogan

Feed
  
Written: Wed., September 2nd, 2009 

Contact Form 8

Contact Form 8 is based on Takayuki Miyoshi’s Contact Form 7 version 2.0.1. Contact Form 8 has better support for checkboxes (clickable labels, actually separate onto different lines).

This is done by creating guaranteed-unique id attributes for checkboxes so the for attribute of the checkboxes’ labels may be set (automatically, of course). Per the HTML spec, this means clicking on the label checks or unchecks the checkbox (or radio button).

I did not “upgrade” Contact Form 7’s handling of other input types like <input type="text" /> because it is already possible to set an ID and manually create a label for such items, and automatically generating labels would break existing Contact Form 7 forms.

Please note that Contact Form 7 and Contact Form 8 should not be activated at the same time. They use the same set of data. The positive side of this is that existing Contact Form 7 installations, including custom forms and shortcodes, are retained and undamaged when upgrading to Contact Form 8. (This may change if Contact Form 7 undergoes serious changes in the future and Contact Form 8 does not.)

The project is ready for you to fork or download from GitHub.

It is also available from Wordpress.

You can see my other projects here or my other WordPress plugins here.

Please Use the forum for Contact Form 7 for help unless your issue relates to the upgraded checkboxes and radio buttons of Contact Form 8, specifically. In that case, please use the Contact Form 8 forum. Thank you.

Tagged:      

Author: You should follow @alanhogan

Original content, graphics, and code © Alan J. Hogan 2000–2010  |  Contact

About this site & credits  |  Powered by HS-CMS

Site map