Success message Cookbook / Contact form as snittpet

Working on my second Kirby site. I have been following the cookbook contact form setup. Everything seems to work. Email is sent and received.

Now I am trying to implement a success message.
Since in the Boilerplate the message is already included, how can I echo this out when the message is sent?

     // no exception occurred, let's send a success message
            if (empty($alert) === true) {
                $success = 'Vielen Dank für Ihre Nachricht!';
                $data = [];

Thank you in advance!

Hm, the success message is already included in the recipe and is echoed in the template on success?

1 Like

Thats what I thought. Just just checked the SourceCode. Text is being echoed - in white :see_no_evil:

Thank you!