Thank you for the reply.
but the checkbox still doesn’t work.(The other forms work.)
Controller (shortened)
$data = [
'name' => get('name'),
'company' => get('company'),
'email' => get('email'),
'text' => get('text'),
'city' => get('city'),
'state' => get('state'),
'postalcode' => get('postalcode'),
'country' => get('country'),
'when' => get('when'),
'howlong' => get('howlong'),
'source' => get('source'),
'target' => get('target'),
'type' => get('type') /****** here ******/
];
…
if (empty($alerts)) {
try {
$kirby->email([
'template' => 'email',
'from' => 'mymail@gmail.com',
'replyTo' => $data['email'],
'to' => 'mymail@gmail.com',
'subject' => esc($data['name']) . ' a message from website',
'data' => [
'name' => esc($data['name']),
'type' => esc($data['type']), /****** here ******/
'company' => esc($data['company']),
'email' => esc($data['email']),
'city' => esc($data['city']),
'state' => esc($data['state']),
'postalcode' => esc($data['postalcode']),
'country' => esc($data['country']),
'text' => esc($data['text']),
'sender' => esc($data['company']),
'when' => esc($data['when']),
'howlong' => esc($data['howlong']),
'source' => esc($data['source']),
'target' => esc($data['target'])
],
'attachments' => $attachments
]);
Email template:
<?php
?>
<p><b>Job Title</b>
<?= $name ?></p>
<p><b>Company</b>
<?= $company ?></p>
<p><b>Email</b>
<?= $email ?></p>
<p><b>City</b>
<?= $city ?></p>
<p><b>State/Province</b>
<?= $state ?></p>
<p><b>Zip/Postal Code</b>
<?= $postalcode ?></p>
<p><b>Country</b>
<?= $country ?></p>
<p><b>Type</b><br><?= implode(',', $type) ?></p> /****** here ******/
<p><b>How long is your file (or asset)?</b>
<?= $howlong ?></p>
<p><b>Source Language</b>
<?= $source ?></p>
<p><b>Target Language</b>
<?= $target ?></p>
<p><b>When do you need it by?</b>
<?= $when ?></p>
<p><b>Please describe your file</b>
<?= $text ?></p>
<p>Best,</p>
<p><?= $sender ?></p>