Hi,
I created a form with Formit but I can't figure out how to send the values to my email.
The basic fields like name and email work fine, it is hard because i'm using Migx and the selection of numbers.
I would like to have an overview of the products with their value(number) in the mail like:
Product 1 (title): chosen number
Product 2 (title): chosen number
Product 3 (title): chosen number etc...
The Chunk for the products looks like this:
<li>
<p>
[[+title]]
</p>
<select name="[[+title]]" id="[[+title]]" value="[[[[+title]]]]">
<option value="0"[[!+fi.numbers:FormItIsSelected=`0`]]>0</option>
<option value="1x" [[!+fi.numbers:FormItIsSelected=`1`]]>1</option>
<option value="2x" [[!+fi.numbers:FormItIsSelected=`2`]]>2</option>
<option value="3x" [[!+fi.numbers:FormItIsSelected=`3`]]>3</option>
<option value="4x"[[!+fi.numbers:FormItIsSelected=`4`]]>4</option>
<option value="5x" [[!+fi.numbers:FormItIsSelected=`5`]]>5</option>
<option value="6x" [[!+fi.numbers:FormItIsSelected=`6`]]>6</option>
<option value="7x" [[!+fi.numbers:FormItIsSelected=`7`]]>7</option>
<option value="8x" [[!+fi.numbers:FormItIsSelected=`8`]]>8</option>
<option value="9x" [[!+fi.numbers:FormItIsSelected=`9`]]>9</option>
<option value="10x" [[!+fi.numbers:FormItIsSelected=`10`]]>10</option>
</select>
</li>
The formit call looks like this:
[[!FormIt?
&validate=`[[!getImageList? &tvname=`Bestellijst` &tpl=`tLoadlist` &outputSeparator=`,`]]`
&hooks=`spam,email,FormItSaveForm`
&emailTpl=`OrderReport`
&emailSubject=`Contactformulier vanuit [[++site_name]]`
&emailTo=`mymailadress`
&validationErrorMessage=`Niet alle velden zijn gevuld`
&successMessage=`<div class="message">Bedankt voor uw bericht</div>`
&validate=` naam:required,
email:email:required,
inputChecker:blank`
&spamEmailFields=`email,naam`
]]
Already tried so many things in the the emailTpl, but nothing seems to work.
Usually the field I created for the products with values keeps empty.
Appreciate it so much if someone can help me.
Would be perfect if only the products higher then zero will be shown.
Thanks a lot!