Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the default date segments configurable #493

Merged
merged 1 commit into from Apr 10, 2024

Conversation

peteryates
Copy link
Member

This change should make it easier for people to add custom date validation by giving them control of the identifiers used by Rails' multiparameter fields.

This was suggested in #489 and in [the linked PR] the i (which tells Rails to cast to an Integer) is removed, allowing the custom validation to take place before Rails tries casting the values to a Date.

Copy link

netlify bot commented Apr 3, 2024

Deploy Preview for govuk-form-builder ready!

Name Link
🔨 Latest commit 7a7c882
🔍 Latest deploy log https://app.netlify.com/sites/govuk-form-builder/deploys/660da33694401b00084fc15e
😎 Deploy Preview https://deploy-preview-493--govuk-form-builder.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

This change should make it easier for people to add custom date
validation by giving them control of the identifiers used by Rails'
multiparameter fields. In the linked PR the i (which tells Rails to cast
to an Integer) is removed.

ministryofjustice/laa-submit-crime-forms#681

Refs #489
@peteryates peteryates force-pushed the make-date-segments-configurable branch from 894784a to 7a7c882 Compare April 3, 2024 18:43
@peteryates peteryates merged commit 9455e0d into main Apr 10, 2024
17 checks passed
@peteryates peteryates deleted the make-date-segments-configurable branch April 10, 2024 12:27
peteryates added a commit that referenced this pull request Apr 15, 2024
Following on from #493 this allows the date segments to be overridden on
a field-by-field basis instead of just at the app level.
peteryates added a commit that referenced this pull request Apr 23, 2024
Following on from #493 this allows the date segments to be overridden on
a field-by-field basis instead of just at the app level.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant