[[!getImageList? &tvname=`products` &tpl=`productvalue`]]
<li>[[+product]]: <input name="[[+product]]" type="text" id="[[+product]]" value="[[+fi.[[+product]]]]" [[+fi.error.[[+product]]:isnot=``:then=`class="fielderror"`:else=`class="field"`]]></li>
This question has been answered by multiple community members. See the first response.
what is your current formit-call?
[[!FormIt? &validate=`workemail:blank,name:required,email:email:required,[[+product]]:isNumber` &hooks=`email,redirect` &emailSubject=`order form` &emailTpl=`OrderTplMain` &emailTo=`[[++email]]` &submitVar=`order_main` &redirectTo=`179` &spamEmailFields=`email,naam` &validationErrorMessage=`<p>Please correct the following fields:</p><br />`
<ul>[[getImageList? &tvname=`products` &tpl=`mail_product`]]</ul>
[[+[[+product]]:notempty=` <li>[[+product]]:[[+[[+product]]]]</li> `]]
<li>[[+product]]: <input name="[[+product]]" type="text" id="[[+product]]" value="[[+fi.[[+product]]]]" [[+fi.error.[[+product]]:isnot=``:then=`class="fielderror"`:else=`class="field"`]]></li>
[[+red flower:notempty=` • red flower:[[+red flower]] `]]
[[getImageList
[[!getImageList
<input name="red flower"
<li>[[+product]]: <input name="amount[[+MIGX_id]]" type="text" id="amount[[+MIGX_id]]" value="[[!+fi.amount[[+MIGX_id]]]]" [[+fi.error.amount[[+MIGX_id]]:isnot=``:then=`class="fielderror"`:else=`class="field"`]]></li>
[[+amount[[+MIGX_id]]:notempty=` <li>[[+product]]:[[+amount[[+MIGX_id]]]]</li> `]]
&validate=`[[!getImageList? &tvname=`products` &tpl=`@CODE:amount[[+MIGX_id]]:isNumber` &outputSeparator=`,`]]`