forms
forms copied to clipboard
Ask for confirmation before submitting form
Nextcloud (please complete the following information): https://cloud.nextcloud.com/apps/forms/T3GgFx2JATEYoWFa
Is your feature request related to a problem? Please describe. When I tried to enter my name and email address, I wanted to separate them by a blank line. So, I pressed Shift+Enter and was surprised when the form submitted.
Describe the solution you'd like Prompting the user for confirmation before submitting a form.
Describe alternatives you've considered Remove the ability to submit forms using the enter key (the same way browsers stopped using backspace as a back button, to avoid accidentally performing an action while typing).
Iirc., the shift enter was needed for accessibility. So we discussed that once and intentionally implemented it like that. Also a short-text field is single-line by its html-definition.
One could make an additional second confirmation, but probably only as additional option to the form. This might not to be wanted everywhere. What about accessibility on this, @jancborchardt ?
Edit: Ref to self: https://github.com/nextcloud/forms/pull/413#issuecomment-634285915
Confirmation-dialog also related to #482
Edit2: NoteToSelf - Idea: Confirmation via Modal, only coming up, if submitted by shift+enter or if form is empty.
Hi. I only wanted to remind this is still a desired feature. One of those browser-embedded prompts would probably be enough (such as those that pop-up when you try to close the page before submitting the form). Thanks!