Display message when using Email action

Display a confirmation message after sending an email from a CF form.

Overview

The form refreshes after the email action without showing any feedback to the user.
Add a Custom Code action after the Email action to enqueue a Joomla system message, which will display on the refreshed page.

Answered
go goliath 19 Aug, 2015
I use a ChronoForm in combination with ChronoConnectivity. One of the options in the form is to email the field values. I use a button to do this. After emailing the form is refreshed. All this works perfectly. But the only thing is that I can't see if I already pushed the mail button. So is it possible to display a message on top of the form after using the Email action? Similar to the green 'Saved successfully' message when you use the DB Save action.
Gr GreyHead 19 Aug, 2015
Hi geertmartens,

You can use a Custom Code action after the Email action to add a Joomla system message:
<?php
$app = \JFactory::getApplication();
$app->enqueuemessage('some message');
?>
Joomla! will show this on the next page displayed.

Bob
go goliath 19 Aug, 2015
Answer
Hi Bob

Thanks for the answer!
I also found this topic here.

Regards

Geert
This topic is locked and no more replies can be posted.