Display thank you page after user submits form
Permalinkcopy
/concrete/mail/block_form_submission.php
to
/mail/block_form_submission.php
change
foreach($questionAnswerPairs as $questionAnswerPair){ $submittedData .= $questionAnswerPair['question']."\r\n".$questionAnswerPair['answer']."\r\n"."\r\n"; }
to
foreach($questionAnswerPairs as $questionAnswerPair){ $submittedData .= $questionAnswerPair['question']."\r\n".$questionAnswerPair['answer']."\r\n"."\r\n"; if($questionAnswerPair['question']=='e-mail'){ $email = $questionAnswerPair['answer']; } if($questionAnswerPair['question']=='name'){ $name = $questionAnswerPair['answer']; } if(isset($email)){ $from[0] = $email; $from[1] = $name; }
you set [Notify me by email when people submit this form: ].
Reply to e-mail can be received.
http://interdic.co.jp/ is the final customer.
Has published at no charge to the customer's approval has been obtained for value creation.
Thanks! <script>window.location="/form_thankyou_page/"</script>
but a few people have requested this ability, so it really should be added to the form block at some point.
There was a request just created.
make
/blocks/form/
copy
/concrete/blocks/form/controller.php
to
/blocks/form/controller.php
change at line 330
to
make thankyou page and setting url to
[Message to display when completed:] field.