Contao DCA - How to set default value on multiple checkboxes
<p>Let's say we have a dca array like this:  </p>

<pre><code>$GLOBALS['TL_DCA']['tl_member']['fields']['publicFields'] = array
(
    ...
    'inputType'          =&gt; 'checkbox',
    'options'            =&gt; array('value1' =&gt; "label1", 'value2' =&gt; "label2");,  
    'eval'               =&gt; array('multiple'=&gt;true, ...
);
</code></pre>

<p>Now we want to set the checkbox with value1 to checked by default.</p>

<p>I tried this but it does NOT work:</p>

<pre><code>$GLOBALS['TL_DCA']['tl_member']['fields']['publicFields']['default'][0] = 'value1';
</code></pre>

<p>I found a description on <a href="https://de.contaowiki.org/Defaultwerte_vorbelegen" rel="nofollow noreferrer">https://de.contaowiki.org/Defaultwerte_vorbelegen</a>. but it's for single value fields only not for multiple.</p>