Skip to content

Support custom receipt without any data models #1970

@olemartinorg

Description

@olemartinorg

Description

The custom receipt is loaded via layout sets today, and requires that a data type has been set. It then loads the full <FormProvider> which loads that data model. When using custom receipt together with autoDeleteOnProcessEnd: true we cannot show that custom receipt (there is a warning about this that falls back to the default receipt in ProcessWrapper) after the referenced data type has been deleted (because loading <FormProvider> would crash when the default data model is missing).

After #1484 is done, it might be easier to run FormProvider without a single/default data model, if we're able to load multiple data models on demand/when used. This should also mean that we can then add support for loading a custom receipt _without any default data model definedinlayout-sets.json` - as long as no components or text resources reference the data model that has been deleted.

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions