Task #95074
closed
Documentation: double submit blocker example
Added by Stig Nørgaard Færch about 3 years ago.
Updated about 2 years ago.
Sprint Focus:
Remote Sprint
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
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
- TYPO3 Version changed from 10 to 12
- Sprint Focus set to Remote Sprint
Will add this to the FAQ section.
- Related to Bug #94873: double click on submit button triggers double submit of form data added
- Status changed from New to In Progress
- Assignee set to Björn Jacob
- Status changed from In Progress to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
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.
- Related to Task #97782: Extend double submit blocker example added
- Status changed from Resolved to Closed
Also available in: Atom
PDF