define a checkbox group with required elements set/active

An end user has designed a checkbox group with a set of static options.

But what they also want is for certain of the options within the checkbox group to be set as mandatory. That is, pre-checked.

Additionally, if an option is mandatory they it can’t be unchecked by the user.

Any suggestions as to how to implement?

That would require a disabled and a checked attribute on the input element, which is not possible with Camunda Forms, at least to my knowledge.

Thanks for confirming what I thought.

Something like:

{
  "values": [
    {
      "label": "1 (Optional)",
      "value": "1"
    },
    {
      "label": "2 (Mandatory)",
      "value": "2",
      "properties": {
        "checked": true,
        "disabled": true
      }
    },
    {
      "label": "3 (Optional)",
      "value": "3"
    }
  ],
  "label": "Foo",
  "type": "checklist",
  "layout": {
    "row": "Row_11fh3h0",
    "columns": null
  },
  "id": "Field_0xtiys2",
  "key": "cl_test_foo",
  "description": "Set of options for fooing"
},

Yes, the additional properties would be terrific but probably unlikely.