I have it working now and the chosen radio is printed out in the email.
The only thing is that the snippet [[+betaling.1:notempty=`[[+betaling.1]]`]] from the not chosen radio is also printed out in the email. How could I remove this from the email?
Template:
[[+betaling.0:notempty=`[[+betaling.0]]`]]
[[+betaling.1:notempty=`[[+betaling.1]]`]]
Snippet:
[[!FormIt?
&hooks=`spam,email,redirect`
&emailTpl=`sentEmailTpl`
&emailSubject=`Bestelling`
&emailTo=`
[email protected]`
&redirectTo=`2183`
&validate=`email:email:required,
betaling:required`
]]
Radios:
<input type="radio" value="bank" name="betaling[]" [[!+fi.betaling:FormItIsChecked=`bank`]] id="bank" />
<input type="radio" value="paypal" name="betaling[]" [[!+fi.betaling:FormItIsChecked=`paypal`]] id="paypal" />