I have a custom module in admin with a variety of fields.
One of these fields I want to be a 'checkboxset'. When I set the formElement value to that it shows properly as a list of checkboxes and I can select these and save these with some controller code that is saving the rest of the form fields (some input's and multiselects).
However, when the admin page reloads it does not show the saved values. All the checkboxes are unchecked.
I also tried switching it from a 'checkboxset' to a 'multiselect' and it worked without issue.
The code for the field is below:
<field name="condition_checklist" formElement="multiselect" sortOrder="140">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">Ose\Tradein\Model\Source\ConditionChecklist</item>
<item name="config" xsi:type="array">
<item name="source" xsi:type="string">Tradein</item>
<item name="additionalInfo" xsi:type="string">You must tick all of the boxes</item>
</item>
</argument>
<settings>
<dataType>text</dataType>
<label translate="true">Condition Checklist</label>
<dataScope>condition_checklist</dataScope>
<validation>
<rule name="required-entry" xsi:type="boolean">false</rule>
</validation>
</settings>
</field>