[TYPO3-english] [FormHandler] Confirmation message?
Salander
luc.berro at epitech.eu
Wed Nov 6 12:08:26 CET 2013
Hello,
I created a simple form that store some datas into the table tt_address.
It stores the data well but when I submit I have some red messages on the frontend :
" No valid implementation class for component "Tx_tt_address_Finisher_SubmittedOK" "
It's a very simple form, I think the problem is in the typoscript.
> Here is my .html template :
<!-- ###TEMPLATE_FORM1### begin -->
<h1>Please complete the form so it can be stored into our tt_address database: </h1>
<form action="###REL_URL###" id="formproject" method="post" class="tt_address">
<dl>
<dt><label for="description">Description</label></dt>
<dd>
<textarea name="tt_address[description]" id="description">###value_description###</textarea>
</dd>
<dt><label for="title">Your Title</label></dt>
<dd>
<input type="text" name="tt_address[title]" id="title"
value="###value_title###" />
</dd>
<dt><label for="email">Your email address</label></dt>
<dd>
<input type="text" name="tt_address[email]" id="email"
value="###value_email###" />
</dd>
</dl>
<input type="submit" value="Submit" ###submit_nextStep### />
</form>
<!-- ###TEMPLATE_FORM1### end -->
<!-- ###TEMPLATE_SUBMITTEDOK### begin -->
<h1>Thanks! Your " <p>###value_title###</p>"
is stored and will be show on the website by an Admin:<h1>
<!-- ###TEMPLATE_SUBMITTEDOK### end -->
> And here is the typoscript :
plugin.Tx_Formhandler.settings {
#debug = 1
templateFile = fileadmin/user_upload/FormHandler/address_form.html
formValuesPrefix = tt_address
finishers {
1.class = Finisher_DB
key = uid
1.config {
table = tt_address
fields {
email.mapping = email
description.mapping = description
title.mapping = title
pid.postProcessing = TEXT
pid.postProcessing.value = 47
hidden.postProcessing = TEXT
hidden.postProcessing.value = 1
}
}
2 {
class = Tx_tt_address_Finisher_SubmittedOK
config.returns = 1
}
}
}
As you can see, after the user click on the "submit" button I want him to be redirected on the template <!-- ###TEMPLATE_SUBMITTEDOK### begin -->
Do you know why it doesn't work?
Thanks.
Cordialement,
Salander
More information about the TYPO3-english
mailing list