This app collects feedback from users via contact forms rendered on GOV.UK.
This data is then sent to support-api app to be dealt with.
Live examples
Nomenclature
-
Feedback: All the data received from contact forms is considered to be “feedback” of some form
or other and relates to pages published on GOV.UK.
-
Anonymous Contact: Part of the feedback collected by this app is anonymous, when it’s
submitted via an anonymous contact form.
-
Named Contact: In contrast with the Anonymous Contact feedback, this is submitted
via a form that will require you to identify yourself. This data is sent directly
to Support API, which passes it on to Zendesk.
Service Feedback
Most of the /done/completed-transaction
pages render a Service Feedback form. An example is: www.gov.uk/done/vehicle-tax.
Assisted Digital Feedback
There are also three assisted digital feedback forms:
Transaction finished
The transaction finished page can be found here: https://www.gov.uk/done/transaction-finished.
This doesn’t display a form, just content to inform the user that the transaction is finished.
Where is the data sent?
The Service Feedback form fields also exist within the Assisted Digital Feedback form. They are foundationally the same, but Assisted Digital Feedback has some extra fields.
The Service Feedback form data from both types of form is sent to the Support API. It can be viewed using the Support app within the Feedback Explorer.
In addition to sending some data to the Support API, the data from the other fields (from the Assisted Digital Feedback form) plus some data from hidden fields appended using JS (referrer
and javascript_enabled
) are written to a Google spreadsheet.
For submitting the Assisted Digital Feedback form, you will need to get the Google API credentials from AWS secrets/integration. To use them locally, create a .dotenv file and write them in:
GOOGLE_PRIVATE_KEY=
GOOGLE_CLIENT_EMAIL=
ASSISTED_DIGITAL_GOOGLE_SPREADSHEET_KEY=
The .env
file is listed within the .gitignore
file. Do not push the .env
file to version control.
Completed transaction feedback forms were previously rendered by the Frontend application. Rendering was moved into this application which enabled the implementation of form validation.
Technical documentation
This is a Ruby on Rails app, and should follow our Rails app conventions.
You can use the GOV.UK Docker environment to run the application and its tests with all the necessary dependencies. Follow the usage instructions to get started.
Use GOV.UK Docker to run any commands that follow.
Running the test suite
bundle exec rake
Further documentation
Licence
MIT License