open-formulieren / open-forms

Smart and dynamic forms
https://open-forms.readthedocs.io
Other
36 stars 26 forks source link

Provide a way to add a prefix to a variable name in Stuf-ZDS submission #4731

Open LaurensBurger opened 2 weeks ago

LaurensBurger commented 2 weeks ago

Thema / Theme

Form designer

Omschrijving / Description

ref: Ngein 16 + OneGov

As a form designer i want to create submissions that can be "mapped" to certain "zaakspecifieke" fields in my zaak systeem.

The zaak systeem can pick up fields from the "extraElementen" that start with: "zaakspecifiek" followed by the variable's key. So "inkomen" would become "zaakspecifiek.inkomen" And "postcode" becomes "zaakspecifiek.postcode"

If you build a form with just a few fields, no logic, no validation this seems possible. But once forms start getting more complex these "dots" cause issues in the front-end.

Ideally Open Forms would provide a way for form builders to simply map these variables to a custom "extraElement" (like #4380 but without the payment part) - or allow them to select "This is zaakspecifiek" from the registration tab of a component and make the template prefix this automatically to generate:

<StUF:extraElement naam="zaakspecifiek.tekst">test1</StUF:extraElement> instead of: <StUF:extraElement naam="tekst">test1</StUF:extraElement>

Added value / Toegevoegde waarde

This will allow submissions to the zaak systeem with no need for an ESB/proxy

Aanvullende opmerkingen / Additional context

No response

joeribekker commented 16 hours ago

If you build a form with just a few fields, no logic, no validation this seems possible. But once forms start getting more complex these "dots" cause issues in the front-end.

Can you elaborate?