add a way for form validation to require confirmation rather than changed input

Created on 1 November 2011, almost 13 years ago
Updated 26 June 2023, about 1 year ago

I think it would be useful in a lot of places if there were a way to make form validation ask 'Are you sure about this value?' rather than outright reject it.

Eg:

1. user enters 'kittens' in the field and submits form
2. validation message says: 'Entering 'kittens' here may invalidate your license. Are you sure you want to continue?'
3. Like regular form errors, this gives the user the chance to change the original values they entered in the entire form.
4. if the value remains the same upon submission, the confirmation validation then passes.

From a DX point of view, I imagine this would be done with an analogue function to form_set_error, say form_set_confirm.

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
FormΒ  β†’

Last updated less than a minute ago

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024