Project

General

Profile

Actions

Bug #82346

closed

EXT:form - finishers are not called

Added by Markus Boss over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2017-09-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
invokeFinishers isAfterLastPage
Complexity:
Is Regression:
Sprint Focus:

Description

Added finishers to a form are not called in frontend.

The reason I found is in the render function of class FormRuntime:

if ($this->isAfterLastPage()) {
            $this->invokeFinishers();
            return $this->response->getContent();
}

isAfterLastPage() is always false. This can be reproduced with the provided example form.

Actions #1

Updated by Markus Boss over 6 years ago

I am using TYPO3 8.7.6.

Actions #2

Updated by Markus Boss over 6 years ago

  • Priority changed from -- undefined -- to Must have
Actions #3

Updated by Mathias Brodala over 6 years ago

  • Status changed from New to Needs Feedback

Finishers are working just fine, please post your form definition.

Actions #4

Updated by Markus Boss over 6 years ago

renderingOptions:
  submitButtonLabel: Submit
identifier: example
label: example
type: Form
prototypeName: standard
finishers:
  -
    options:
      pageUid: '1'
      additionalParameters: ''
    identifier: Redirect
renderables:
  -
    renderingOptions:
      previousButtonLabel: 'previous Step'
      nextButtonLabel: 'next Step'
    identifier: page-1
    label: 'Contact Form'
    type: Page
    renderables:
      -
        defaultValue: ''
        identifier: name
        label: Name
        type: Text
        properties:
          fluidAdditionalAttributes:
            placeholder: Name
        validators:
          -
            identifier: NotEmpty
      -
        defaultValue: ''
        identifier: subject
        label: Subject
        type: Text
        properties:
          fluidAdditionalAttributes:
            placeholder: Subject
        validators:
          -
            identifier: NotEmpty
      -
        defaultValue: ''
        identifier: email
        label: Email
        type: Text
        properties:
          fluidAdditionalAttributes:
            placeholder: 'Email address'
        validators:
          -
            identifier: NotEmpty
          -
            identifier: EmailAddress
      -
        defaultValue: ''
        identifier: message
        label: Message
        type: Textarea
        properties:
          fluidAdditionalAttributes:
            placeholder: ''
        validators:
          -
            identifier: NotEmpty
  -
    renderingOptions:
      previousButtonLabel: 'previous Step'
      nextButtonLabel: 'next Step'
    identifier: summarypage
    label: 'Summary page'
    type: SummaryPage

Actions #5

Updated by Markus Boss over 6 years ago

I found out, if I create a fresh installation using composer then the form example works fine.
However an fresh installation with the latest package from typo3.org won't work.

Actions #6

Updated by Markus Boss over 6 years ago

I guess since "Finishers are working just fine" at least for anyone else, this ticket can be closed.

Actions #7

Updated by Björn Jacob over 6 years ago

  • Status changed from Needs Feedback to Closed

Thank you for your feedback. Closing the issue as requested. If you encounter problems in the future (re)open this issue. Thanks again.

Actions

Also available in: Atom PDF