Help adding Contact form with multiple contact

@ramraj, To save you some time, you might want to give the following form definition a try:

---
form:
  name: contact
  fields:
    topic:
      type: select
      options:
        'marketing@mysite.com': General information
        'sales@mysite.com': Sales information
  buttons:
    submit:
      type: submit
      value: Submit
  process:
    email:
      subject: 'Site Contact Form'
      body: "{% include 'forms/data.html.twig' %}"
      to: '{{ form.value.topic|e }}'
---
1 Like