I am trying to load some options in to a checkbox list from another entry so that a user and save select them form a checkbox list but I am unable to save the Entry Form with their selection.
I have created the registeredOccurances
checkbox field in the Section, it has no options set as I want to set them on the entry form.
<input type="hidden" name="fields[registeredOccurances]" value="">
{# Load rows from SuperTable in to checkbox list #}
{% for block in entry[dateFieldHandle] %}
<label><input type="checkbox" value="{{ loop.index }}" name="fields[registeredOccurances][]"> {{ block.date }}</label>
{% endfor %}
{% if entry is defined %}
<p>{{ dump(entry.getErrors()) }}</p>
{% endif %}
The dump is outputting the below, can someone help to interpret it?
array(1) { ["registeredOccurances"]=> array(1) { [0]=> string(33) "Registered Occurances is invalid." } }
Thanks for your help :)