I am stuck on the following:
There a number of checkboxes:
<input type="checkbox" name="g1[]" value="1" [[!+fi.g1:FormItIsChecked=`1`]]>
<input type="checkbox" name="g1[]" value="2" [[!+fi.g1:FormItIsChecked=`2`]]>
...
<input type="checkbox" name="g1[]" value="N" [[!+fi.g1:FormItIsChecked=`N`]]>
In the email chunk it try this:
1. If this is set [[+g1]] I get space delimited list of values (for the checked checkboxes only), e.g. 1 2 ...
2. If I set:
[[!If? &subject=`[[+g1]]` &operator=`eq` &operand=`1` &then=`Text 1<br>`]]
or
[[!If? &subject=`[[+g1]]` &operator=`inarray` &operand=`1` &then=`Text 1<br>`]]
- DOES NOT work / cached / uncached [[!+g1]] or [[!+fi.g1]]
[[+g1:is=`1`:then=`Text 1`]] - doesn't work
The above output modifications return the code itself... i.e. like it is escaped and not parsed and returned as text!?
I need numbers for the values for other purposes, that is why I do not set the value as text on all checkboxes.
Any clues?