I have created a custom contact form in Magento and I have done check boxes that hide and show different fields to be filled.
the problem is when I test submitting all the hidden values been sent to my email.
The transactional email settings was like that:
Size: {{var data.size1}} {{var data.size2}} {{var data.size3}} {{var data.size4}} {{var data.size5}} {{var data.size6}} {{var data.size7}}
My input code for option size 7 is:
<input name="size7" id="size7" type="text" value="Type the size here"
class="required-entry"
onblur="if (this.value == '') {this.value = 'Type the size here';}"
onfocus="if (this.value == 'Type the size here') {this.value = '';}" >
and after filling for example size7 and submit, I got the email like that:
Size: 12500000000000000 Type the size here Type the size here Type the size here Type the size here Type the size here Type the size here
I hope I described the problem well enough.