I've been slowly building a replacement for my live site using Sheffield Blue as a base. I'm at a point right now where I've been going back through and redesigning most of my forms to make them more responsive. I had some older mod forms not using the new spam idea and recoded with the spam code. I also modifed the mega menue contact form so when it fails it plays nice with the changes I'm doing on the normal contact us from.
I added a hidden subject so I know where the message came from... maybe you will find it usfull, I've tested the mega menu and it's behaving as expected... the input field is tracking back and getting cought by the main code.
Code:
<br class="clearBoth" />
<label for="enquiry">Message<span class="required"> *</span></label>
<?php echo zen_draw_textarea_field('enquiry', '40', '3', $enquiry, 'id="enquiry" class="required" required="" type="text"'); ?>
<?php echo zen_draw_input_field('should_be_empty', '', ' size="10" id="CUAS" style="visibility:hidden; display:none;" autocomplete="off"'); ?>
<?php echo zen_draw_hidden_field('subject', 'From MegaMenu', ' id="subject"'); ?>
Bookmarks