Task #95074
closedDocumentation: double submit blocker example
100%
Description
A double submit blocker feature would be nice for EXT:form. But it seems like it takes to big an effort to implement server-side. Instead it can be solved easier with JS. But a standard solution might not work for all.
Instead an example could be useful for inspiration for others to implement.
Files
Updated by Stig Nørgaard Færch about 3 years ago
- File Navigation.html Navigation.html added
Stig Nørgaard Færch wrote:
A double submit blocker feature would be nice for EXT:form. But it seems like it takes to big an effort to implement server-side. Instead it can be solved easier with JS. But a standard solution might not work for all.
Instead an example could be useful for inspiration for others to implement.
Here is a suggestion for an example where the blocker is implemented in pure JS inline in the Navigation.html partial.
(EXT:form/Resources/Private/Frontend/Partials/Form/Navigation.html
Updated by Björn Jacob over 2 years ago
- TYPO3 Version changed from 10 to 12
- Sprint Focus set to Remote Sprint
Will add this to the FAQ section.
Updated by Björn Jacob over 2 years ago
- Related to Bug #94873: double click on submit button triggers double submit of form data added
Updated by Björn Jacob over 2 years ago
- Status changed from New to In Progress
- Assignee set to Björn Jacob
Updated by Gerrit Code Review over 2 years ago
- Status changed from In Progress to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73701
Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73701
Updated by Gerrit Code Review over 2 years ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73701
Updated by Gerrit Code Review over 2 years ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73701
Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73660
Updated by Björn Jacob over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b4c14d135076fa5bb71cd0a700a7f68096d31288.
Updated by Andreas Krämer over 2 years ago
Hi Björn, thanks for your FAQ update! But if the submit button gets disabled, the form also looses the __currentPage parameter, which is attached to the submit button and needed for submitting the form. Maybe you could update your example to a TYPO3 compatible solution?
We are following an approach to extracting the __currentPage to a hidden field with JavaScript, but its still a little buggy.
Updated by Björn Jacob over 2 years ago
- Related to Task #97782: Extend double submit blocker example added