Looping Template - How to remove unwanted fields
I've worked on this all day & still can't get rid of the security Answer field, hidden field & submit button value. Seems like it should be basic, but it's totally whipped me until...
This works using a template for the email form.
Near the top of the template is this nifty bit of code:
$removeIncludes = array();
$removeIncludes[] = "Security";
All you have to do is extend this array using the field names for the fields you want to get rid of.
For instance in my case the revised code looks like this:
$removeIncludes = array();
$removeIncludes[] = "Security";
$removeIncludes[] = "KGA_submit";
$removeIncludes[] = "HiddenFields_fields";
$removeIncludes[] = "Stay_Kauai_Rental_Inquiry_group_Answer";
Effectively removing from the email the submit button value, hidden fields & the security answer.
Using the binding method above & hand coding the fields works fine until I come across a checkbox group... OK, I _could_ probably figure out how to do a checkbox group, but it really is easier to do it in the loop