@flaviocopes. Thanks. The code above did solve the immediate checkboxes issue. However, an earlier issue has re-surfaced as a result.
The re-captcha code is once-again being displayed in the thankyou page and email. I’ll try to work through this but my lack of understanding of twig syntax is getting in my way. When I combine your fix with the re-capthca fix a nasty Twig_Error_Syntax page is displayed.
If you have a moment, here is my code at /user/themes/myTheme/templates/forms/data.html.twig
{% extends "forms/default/data.html.twig" %}
{% for field in form.fields %}
{% block field %}
<div>
{% block field_label %}
<strong>{{ field.label }}</strong>
{% endblock %}:
{% block field_value %}
{% if field.type == 'checkboxes' %}
<ul>
{% for value in form.value(field.name) %}
<li>{{ field.options[value] }}</li>
{% endfor %}
</ul>
{{ dump(field) }}
{% else %}
{{ string(form.value(field.name)|e)|nl2br }}
{% endif %}
{% endblock %}</div>
{% block field %}
{% if field.name!='g-recaptcha-response' %}
<div>{% block field_label %}<strong>{{ field.label }}</strong>{% endblock %}: {% block field_value %},{{ string(form.value(field.name)|e) }},{% endblock %}</div>
{% endif %}
{% endblock %}
{% endblock %}
{% endfor %}
The code at /user/plugins/form/templates/forms/default/data.html.twig
is vanilla default (if relevant):
{% for field in form.fields %}
{% block field %}
<div>{% block field_label %}<strong>{{ field.label }}</strong>{% endblock %}: {% block field_value %},{{ string(form.value(field.name)|e) }},{% endblock %}</div>
{% endblock %}
{% endfor %}