XGovFormBuilder / digital-form-builder

Exploring how to quickly and easily design/prototype/deploy high quality digital forms for UK Gov. Based on the excellent work by DEFRA. Currently maintained by jen+forms@cautionyourblast.com at Caution Your Blast and a community collaboration between FCDO, HO, GDS, DfE, DIT, Version 1, UKHSA
https://digital-form-builder-designer.herokuapp.com/app
MIT License
55 stars 33 forks source link

Allow editing of confirmation page #723

Open jenbutongit opened 2 years ago

jenbutongit commented 2 years ago

Is your feature request related to a problem? Please describe. The designer does not have an interface for editing the confirmation page, however it is editable/customisable via JSON (#573)

Describe the solution you'd like Add an edit confirmation page to the designer.

This is the type definition of a confirmation page.

type Toggleable<T> = boolean | T;

 type ConfirmationPage = {
   customText: {
     title: string;
     paymentSkipped: Toggleable<string>;
     nextSteps: Toggleable<string>;
   };
   components: ComponentDef[];
 };

 export type SpecialPages = {
   confirmationPage?: ConfirmationPage;
 };

Each of these properties must be editable

Describe alternatives you've considered

Additional context

adamdavies1 commented 2 years ago

https://github.com/XGovFormBuilder/digital-form-builder/pull/700 This has been partly competed, designer still needs an edit part.