Form e-mail-finisher does not work for multiple checkbox-values

Hello community,

trying to use the standard E-Mail finisher from forms generated with Neos.Form.Builder
The finisher has the following text:

<f:for each="{form.formState.formValues}" as=“value” key=“label”>
{label}: {value}

If the form contains multiple select checkboxes I get the error:

An exception was thrown while Neos tried to render your page

Notice: Array to string conversion in /html/neos/Data/Temporary/Development/Cache/Code/Fluid_TemplateCache/…

Do you have an idea how to fix that?

Thank you very much.

Hi Marc,

Welcome to the community! :slight_smile:

You have two choices. You can instead of using the loop write a template that will show every value where you need it.
And in case of checkboxes render their values with a loop.

Or you make a nested loop in your template that can also handle array values.

I recommend customizing the template to position every value yourself to make the mail better readable.

Hi Sebastian,
great, I did it as you recommanded customizing template and making a loop for the checkboxes.
Now it’s working fine.
Thanks a lot.

1 Like


Can you mark the topic as solved?