Hello everyone,
I’m using formit for a contact form that has a dropdown for topics. Based on the selected topic, the data will be send to a specific email address. The site admin must be able to manage the topics and emails, so I created a migx tv to store the topic-email pairs.
I’m displaying the topics in the form with getImageList, and they show correctly, but the email isn’t send, even though I get a success message. If I replace the getImageList call with hard coded options, the email gets through.
Here is my code:
<select name="subject" class="form-control">
<option value="" disabled="" selected=""> [[%contact.form.topic.select? &namespace=`language` &topic=`default`]]</option>
[[!getImageList?
&tvname=`contact_topics`
&tpl=`topics_tpl`]]
</select>
and in the tpl I used both:
<option value="[[+topic]]">[[+topic]]</option>
and
<option [[!+fi.subject:FormItIsSelected=
[[+topic]]]]>[[+topic]]</option>
With the same outcome, the email isn’t sent.
Any ideas why this happens?
Thanks!