If you wish to modify how the details on summary pages are displayed, you can do so by creating summary details transformations.
These transformations allow you to modify the SummaryViewModel.details before they are displayed to the user.
Read more about the implementation in the runner documentation
This example shows you how to create a production docker build that includes summary details transformations. Full instructions for production docker builds can be found in the production docker build example.
This example includes
- A form forms/test.json
- A transformation directory, including a summaryDetails transform which uppercases the user's answers
- Run
docker build -t digital-form-builder-runner:latest .in this directory - Run
docker run -p 3009:3009 digital-form-builder-runner:latestto start the built image. The runner will be available at localhost:3009. The test form can now be accessed at localhost:3009/test - Navigate to http://localhost:3009/test and fill in the form
- See that the summary page uppercases all the user's answers