This project is no longer maintained and no further public releases are planned.

No further support will be given.

Feel free to fork the git repository.

Finisher\SubmittedOK

This Finisher displays the content of the subpart ###TEMPLATE_SUBMITTEDOK### after the form was finished.

Add this Finisher as the last one to show text to the user without redirection to another page (Finisher_Redirect).

Finisher_SubmittedOK can also display links to save the data as PDF or CSV and a print link using actions.

Version added

1.0.0

TypoScript path

plugin.Tx_Formhandler.settings.finishers.x copy to clipboard

Example code

<!-- ###TEMPLATE_SUBMITTEDOK### begin -->
<table>
  <tr>
    <td>###LLL:firstname###</td>
    <td>###value_firstname###</td>
  </tr>
</table>
<div>
###PRINT_LINK### / ###PDF_LINK### / ###CSV_LINK###
</div>
<!-- ###TEMPLATE_SUBMITTEDOK### end -->

Properties

.returns

MUST be set. Tells the controller that after this Finisher, no other Finishers can be called!

Data type

Integer (0,1,2)

Version added

1.0.0

.templateFile

Path to template file or template code. Allows to use a separate template file for the submitted ok page.

Data type

String | cObj

Version added

1.3.0

.actions

Container for various output actions like PDF or CSV.
Finisher\SubmittedOK will call each class entered in the actions and fill a marker ###[action]_LINK### with the result.

You can write custom actions. If you want Finisher\SubmittedOK to show the output again, add “returns = 1” in the config section of the action.

Data type

Array

Version added

1.0.0

Example code

actions {
  pdf {
   class = Generator\WebkitPdf
   config.pid = 23 
  }
}

Generator\WebkitPdf will fill the marker ###PDF_LINK### with a link to generate a PDF file of the submitted ok page.

Same for CSV:

actions {
  csv {
   class = Generator\Csv
  }
}