Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion designer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@babel/plugin-syntax-import-attributes": "^7.25.6",
"@babel/preset-react": "^7.26.3",
"@dagrejs/dagre": "^1.1.5",
"@defra/forms-engine-plugin": "^4.5.5",
"@defra/forms-engine-plugin": "^4.5.6",
"@defra/forms-model": "^3.0.643",
"@defra/hapi-tracing": "^1.28.0",
"@elastic/ecs-pino-format": "^1.5.0",
Expand Down
5 changes: 2 additions & 3 deletions designer/server/src/routes/submission/submission.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Scopes, getPageFromDefinition, hasRepeater } from '@defra/forms-model'
import { getPageFromDefinition, hasRepeater } from '@defra/forms-model'
import Boom from '@hapi/boom'
import Joi from 'joi'

Expand Down Expand Up @@ -68,10 +68,9 @@ export default [
},
options: {
auth: {
mode: 'required',
access: {
entity: 'user',
scope: [`+${Scopes.FormRead}`]
scope: false
}
},
validate: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
}) %}
<form class="form" method="post" id="question-form">

{% if questionType == 'GeospatialField' %}
<h3 class="govuk-heading-m">Using maps in your form</h3>
<p class="govuk-body">
We recommend using the <a class="govuk-link govuk-link--no-visited-state" target="_blank" href="https://forms.defra.gov.uk/library/geospatial-pattern">map question pattern (opens in a new tab)</a> when asking users to select or draw locations on a map.
</p>
<p class="govuk-body">
This pattern provides alternatives so users who cannot use maps are not excluded.
</p>
{% endif %}

{%- include "../../../../views/forms/editor-v2/partials/question-details-base.njk" -%}

<hr class="govuk-section-break govuk-section-break--m govuk-section-break--visible">
Expand Down
Loading
Loading