open-forms icon indicating copy to clipboard operation
open-forms copied to clipboard

Sending of checkboxes as booleans via registration plugins (Objects/JSON, Stuf-ZDS/XML) considered problematic

Open alextreme opened this issue 5 months ago • 5 comments

Thema / Theme

Plugins

Omschrijving / Description

Discussed with @LaurensBurger , we notice that via multiple clients that the sending of the selected checkboxes in a registration submission as booleans leads to workarounds via JSON-logic and gateways (DH/GZAC, Utrecht, Rotterdam/eSuite). We would like to see that checkboxes adhere to how radiobuttons work, because that does tend to work for receiving parties.

Example how OF currently submits the data of checkboxes:

"uitkeringenPartner": {
    "ww": false,
    "anw": false,
    "aow": false,
    "nee": false,
    "wao": true,
    "wia": false,
    "wajong": false,
    "bijstand": false,
    "ziektewet": false
}

However the prefered way would be as a single key/value:

uitkeringenPartner: wao

Multiple selections can then be sent as comma-separated values:

uitkeringenPartner: wao,ziektewet

Note that this is also a problem with the Stuf-ZDS backend via XML (eSuite, xxlnc)

Can be discussed with Laurens for further examples.

Added value / Toegevoegde waarde

No response

Aanvullende opmerkingen / Additional context

No response

alextreme avatar Sep 27 '24 09:09 alextreme