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.
Properties
.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 } }